Documentation
¶
Overview ¶
Package log defines the log interface for logging data.
Instances of Logger is used throughout the framework to log information, errors and debug messages. The package also instantiates DefaultLogger that can be used to log impromptu within the framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(s string)
Fatal logs the message and exits with non-zero exit code with the default logger
Types ¶
type LogParams ¶
type LogParams map[string]interface{}
LogParams wrapper around key values used for logging
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger for logging
var DefaultLogger *Logger
DefaultLogger stores the instance of the DefaultLogger
func (*Logger) Destroy ¶
func (l *Logger) Destroy()
Destroy should be called when exiting to close the log file
Click to show internal directories.
Click to hide internal directories.