Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FatalPrefix show fatal prefix FatalPrefix = Prefix{ Plain: plainFatal, Color: Red(plainFatal), File: true, } // ErrorPrefix show error prefix ErrorPrefix = Prefix{ Plain: plainError, Color: Red(plainError), File: true, } // WarnPrefix show warn prefix WarnPrefix = Prefix{ Plain: plainWarn, Color: Orange(plainWarn), } // InfoPrefix show info prefix InfoPrefix = Prefix{ Plain: plainInfo, Color: Green(plainInfo), } // DebugPrefix show info prefix DebugPrefix = Prefix{ Plain: plainDebug, Color: Purple(plainDebug), File: true, } // TracePrefix show info prefix TracePrefix = Prefix{ Plain: plainTrace, Color: Cyan(plainTrace), } )
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
WithColor() Logger
WithoutColor() Logger
WithDebug() Logger
WithoutDebug() Logger
IsDebug() bool
WithTimestamp() Logger
WithoutTimestamp() Logger
Quiet() Logger
NoQuiet() Logger
IsQuiet() bool
Output(depth int, prefix Prefix, data string) error
Fatal(v ...interface{})
Fatalf(format string, v ...interface{})
Error(v ...interface{})
Errorf(format string, v ...interface{})
Warn(v ...interface{})
Warnf(format string, v ...interface{})
Info(v ...interface{})
Infof(format string, v ...interface{})
Debug(v ...interface{})
Debugf(format string, v ...interface{})
Trace(v ...interface{})
Tracef(format string, v ...interface{})
}
Click to show internal directories.
Click to hide internal directories.