Documentation ¶
Index ¶
- Constants
- func Debug(m ...interface{})
- func Debugf(format string, m ...interface{})
- func Error(m ...interface{})
- func Errorf(format string, m ...interface{})
- func Fatal(m ...interface{})
- func Fatalf(format string, m ...interface{})
- func Info(m ...interface{})
- func Infof(format string, m ...interface{})
- func Panic(m ...interface{})
- func Panicf(format string, m ...interface{})
- func Print(m ...interface{})
- func Printf(format string, m ...interface{})
- func Register(name string, creator Creator)
- func SetLogger(l Logger)
- func Setup(name string, mode Mode) (cleanup func())
- func StdLogger() *sysLog.Logger
- func Warn(m ...interface{})
- func Warnf(format string, m ...interface{})
- type Creator
- type Logger
- type Mode
Constants ¶
View Source
const ( ModeTest = "testing" ModeDevelop = "develop" ModeProduction = "product" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debug(v ...interface{}) Debugf(format string, v ...interface{}) Info(v ...interface{}) Infof(format string, v ...interface{}) Warn(v ...interface{}) Warnf(format string, v ...interface{}) Error(v ...interface{}) Errorf(format string, v ...interface{}) Fatal(v ...interface{}) Fatalf(format string, v ...interface{}) Panic(v ...interface{}) Panicf(format string, v ...interface{}) Print(v ...interface{}) Printf(format string, v ...interface{}) With(v ...interface{}) Logger StdLogger() *sysLog.Logger }
Click to show internal directories.
Click to hide internal directories.