The logger package provides a simple and colorful solution for logging in Go applications. It is designed to be easy to use and offers formatted messages for different log levels.
Use the following command to install the logger package:
go get -u github.com/rafaelb13/logger
package main
import (
"github.com/rafaelb13/logger"
)
func main() {
// Example of how to use the logger
log := logger.NewLogger("parameter")
log.Debug("Debug message")
log.Info("Information message")
log.Warn("Warning message")
log.Error("Error message")
}
If you want to contribute, please follow these steps:
- Fork the repository
- Create a branch for your feature (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Adding awesome feature') - Push to the branch (
git push origin feature/YourFeature) - Open a pull request
If you want to contribute, please follow these steps:
- Fork the repository
- Create a branch for your feature (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Adding awesome feature') - Push to the branch (
git push origin feature/YourFeature) - Open a pull request
1.21.3