Categorygithub.com/wabarc/logger
modulepackage
0.0.0-20210730133522-86bd3f31e792
Repository: https://github.com/wabarc/logger.git
Documentation: pkg.go.dev

# README

Logger

This project is serve logger package for Golang project.

License

MIT

# Functions

Debug sends a debug log message.
DisableTime hides time in log messages.
EnableDebug increases logging, more verbose (debug).
Error sends an error log message.
Fatal sends a fatal log message and stop the execution of the program.
Info sends an info log message.
SetLogLevel set the log level.
Warn sends a warn log message.

# Constants

LevelDebug should be used only during development.
LevelError should be used when someone should really look at the error.
LevelFatal should be used in fatal situations, the app will exit.
LevelInfo should be used during normal operations.
LevelWarn should be used when some logic on failure.

# Type aliases

LogLevel type.