Documentation ¶
Index ¶
Constants ¶
View Source
const ( NormalLogLevel = "NORMAL" DevelLogLevel = "DEVEL" )
Variables ¶
View Source
var DebugLogger = NewErrorLogger(ioutil.Discard, debugPrefix)
View Source
var ErrorLogger = NewErrorLogger(os.Stderr, errorPrefix)
View Source
var InfoLogger = NewErrorLogger(os.Stdout, infoPrefix)
View Source
var LogLevels = []string{NormalLogLevel, DevelLogLevel}
View Source
var WarningLogger = NewErrorLogger(os.Stdout, warningPrefix)
Functions ¶
func GetErrorFormatter ¶
func GetErrorFormatter() string
func NewErrorLogger ¶
func RedirectLogging ¶
func UpdateLogLevel ¶
Types ¶
type LogLevelError ¶
type LogLevelError struct {
// contains filtered or unexported fields
}
func NewLogLevelError ¶
func NewLogLevelError() LogLevelError
func (LogLevelError) Error ¶
func (err LogLevelError) Error() string
Click to show internal directories.
Click to hide internal directories.