Documentation
¶
Index ¶
- func Debug(msg string)
- func DebugF(format string, v ...interface{})
- func DebugT(t Tag, msg string)
- func Error(msg string)
- func ErrorE(err error, msg string)
- func ErrorEF(err error, format string, v ...interface{})
- func ErrorF(format string, v ...interface{})
- func Fatal(msg string)
- func FatalE(err error, msg string)
- func FatalEF(err error, format string, v ...interface{})
- func FatalF(format string, v ...interface{})
- func Info(msg string)
- func InfoF(format string, v ...interface{})
- func InfoT(t Tag, msg string)
- func InfoTF(t Tag, format string, v ...interface{})
- func LogCommandLine()
- func SetExitFunctionForTest(f func())
- func SetFromConfig(config LogConfig)
- func SetGlobalOutput()
- func SetGlobalOutputTest(w io.Writer)
- func SetLevel(level zerolog.Level)
- func Warn(msg string)
- func WarnF(format string, v ...interface{})
- func WarnT(t Tag, msg string)
- func WarnTF(t Tag, format string, v ...interface{})
- type Level
- type LogConfig
- type Logger
- func (l Logger) Debug(msg string)
- func (l Logger) DebugF(format string, v ...interface{})
- func (l Logger) DebugT(t Tag, msg string)
- func (l Logger) Error(msg string)
- func (l Logger) ErrorE(err error, msg string)
- func (l Logger) ErrorEF(err error, format string, v ...interface{})
- func (l Logger) ErrorF(format string, v ...interface{})
- func (l Logger) Fatal(msg string)
- func (l Logger) FatalE(err error, msg string)
- func (l Logger) FatalEF(err error, format string, v ...interface{})
- func (l Logger) FatalF(format string, v ...interface{})
- func (l Logger) GetZeroLogger() zerolog.Logger
- func (l Logger) Info(msg string)
- func (l Logger) InfoF(format string, v ...interface{})
- func (l Logger) InfoT(t Tag, msg string)
- func (l Logger) InfoTF(t Tag, format string, v ...interface{})
- func (l Logger) Warn(msg string)
- func (l Logger) WarnF(format string, v ...interface{})
- func (l Logger) WarnT(t Tag, msg string)
- func (l Logger) WarnTF(t Tag, format string, v ...interface{})
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogCommandLine ¶
func LogCommandLine()
func SetExitFunctionForTest ¶
func SetExitFunctionForTest(f func())
log.Fatal calls os.Exit which prevents test cleanups (printing of logs) Tests can set t.FailNow to be called instead of os.Exit
func SetFromConfig ¶
func SetFromConfig(config LogConfig)
func SetGlobalOutput ¶
func SetGlobalOutput()
Not thread safe, call it during global initialization or test initialization
func SetGlobalOutputTest ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
var GlobalLogger Logger
func LoggerForModule ¶
func (Logger) GetZeroLogger ¶
Click to show internal directories.
Click to hide internal directories.