Documentation ¶
Overview ¶
Package logs provides primitives to initialise and access the logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Logger *log.Logger
)
Logger instance to be used for logging purposes
Functions ¶
func Init ¶
func Init() error
Init initialises the log file and the different loggers: WarningLogger, InfoLogger and ErrorLogger.
func SetLogLevel ¶ added in v1.2.0
SetLogLevel sets the log level for global Logger by taking in the string representation of a log.Level
Types ¶
type LominusFormatter ¶ added in v1.2.0
type LominusFormatter struct {
log.TextFormatter
}
LominusFormatter provides the format for log outputs
Click to show internal directories.
Click to hide internal directories.