Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
const ( DebugLevel Level = iota - 1 // InfoLevel is the default logging priority. InfoLevel // WarnLevel logs are more important than Info, but don't need individual // human review. WarnLevel // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. ErrorLevel )
type Logger ¶
type Logger interface { io.Closer Info(args ...interface{}) Error(args ...interface{}) Warn(args ...interface{}) Debug(args ...interface{}) Infof(template string, args ...interface{}) Errorf(template string, args ...interface{}) Warnf(template string, args ...interface{}) Debugf(template string, args ...interface{}) }
var (
Log Logger
)
Click to show internal directories.
Click to hide internal directories.