With an intent to simplify logging and reuse the logging code, this library has a built-log manger that works with Go's built-in log/slog package.
- Logging to the standard output
- Log levels are colour coded (RED: Error, WARNING: ORANGE, BLUE: INFO, GREEN: DEBUG)
- Log levels are specified along with the timestamp
- Logging to a file
- Logs are written to a file specified while creating the logger
- Log levels are specified along with the timestamp
Install the package with the following command
go get github.com/therealriteshkudalkar/golog