Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Clock = clockwork.NewRealClock() // Clock for log timestamps
View Source
var DateTimeFormat = time.RFC3339 // Date format for timestamps
View Source
var DefaultLogger = Logger{}
DefaultLogger is a package-level logger ready to use
View Source
var Output io.Writer = os.Stdout // Output to use for logging
Global logging properties
View Source
var Pretty = false // Pretty print logs
Functions ¶
func Debug ¶
func Debug(a ...interface{})
Debug only logs a message to the output if the EnableDebug is set to true on the Logger
Types ¶
type Logger ¶
type Logger struct { EnableDebug bool // contains filtered or unexported fields }
Logger is used to log messages. Multiple loggers could be used within a project if fine-grained control over debug levels is desired
func (*Logger) Debug ¶
func (l *Logger) Debug(a ...interface{})
Debug only logs a message to the output if the EnableDebug is set to true on the Logger
func (*Logger) Debugf ¶
Debugf only logs a message to the output if the EnableDebug is set to true on the Logger
Click to show internal directories.
Click to hide internal directories.