Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a type that contains references to the console output for debug and info logging levels.
func DefaultLogger ¶
DefaultLogger creates a new instance of Logger, suppressing debug output unless BP_DEBUG is set.
func NewLogger ¶
NewLogger creates a new instance of Logger, configuring the debug and info writers to use. If writer is nil, that logging level is disabled.
func (Logger) Debug ¶
Debug prints output to the configured debug writer, interpolating the format and any arguments and adding a newline at the end. If debug logging is not enabled, nothing is printed.
func (Logger) Info ¶
Info prints output to the configured info writer, interpolating the format and any arguments and adding a newline at the end. If info logging is not enabled, nothing is printed.
func (Logger) IsDebugEnabled ¶
IsDebugEnabled returns true if debug logging is enabled, false otherwise.
func (Logger) IsInfoEnabled ¶
IsInfoEnabled returns true if info logging is enabled, false otherwise.