Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogger ¶
ConfigureLogger creates a new implementation of the Logger interface based on the configuration
func ConfigureMockLogger ¶
func ConfigureMockLogger()
Types ¶
type StandardLogger ¶
type StandardLogger interface { Error(args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) Fatal(args ...interface{}) Infof(format string, args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Debugf(format string, args ...interface{}) Debug(args ...interface{}) }
StandardLogger represents a common interface for logging. It has the the most important functions for writing logs. Most logger are implementations of this interface, so you can just swap them without much change.
var Logger StandardLogger
Logger is the logger initialized when the application starts.
Click to show internal directories.
Click to hide internal directories.