Documentation ¶
Overview ¶
Logging provides logging facilities. It can use 3rd party package to provide functionalities compatible with Elastic search, Logstash, StatsD and .... .
Index ¶
- func Debug(msg string, args ...interface{})
- func Error(msg string, args ...interface{})
- func FDebug(fn string, msg string, args ...interface{})
- func FError(fn string, msg string, args ...interface{})
- func FFatal(fn string, msg string, args ...interface{})
- func FInfo(fn string, msg string, args ...interface{})
- func FWarn(fn string, msg string, args ...interface{})
- func Fatal(msg string, args ...interface{})
- func Info(msg string, args ...interface{})
- func Log(lvl int, msf string, args []interface{})
- func Trace(msg string, args ...interface{})
- func Warn(msg string, args ...interface{})
- type Logging
- func (l *Logging) Debug(msg string, args ...interface{})
- func (l *Logging) Debugf(msg string, args ...interface{})
- func (l *Logging) Error(msg string, args ...interface{})
- func (l *Logging) Errorf(msg string, args ...interface{})
- func (l *Logging) FDebug(fn string, msg string, args ...interface{})
- func (l *Logging) FDebugf(fn string, msg string, args ...interface{})
- func (l *Logging) FError(fn string, msg string, args ...interface{})
- func (l *Logging) FErrorf(fn string, msg string, args ...interface{})
- func (l *Logging) FFatal(fn string, msg string, args ...interface{})
- func (l *Logging) FFatalf(fn string, msg string, args ...interface{})
- func (l *Logging) FInfo(fn string, msg string, args ...interface{})
- func (l *Logging) FInfof(fn string, msg string, args ...interface{})
- func (l *Logging) FTrace(level int, fn string, msg string, args ...interface{})
- func (l *Logging) FTracef(level int, fn string, msg string, args ...interface{})
- func (l *Logging) FWarn(fn string, msg string, args ...interface{})
- func (l *Logging) FWarnf(fn string, msg string, args ...interface{})
- func (l *Logging) Fatal(msg string, args ...interface{})
- func (l *Logging) Fatalf(msg string, args ...interface{})
- func (l *Logging) Info(msg string, args ...interface{})
- func (l *Logging) Infof(msg string, args ...interface{})
- func (l *Logging) IsDebug() bool
- func (l *Logging) Log(lvl int, msf string, args []interface{})
- func (l *Logging) SetDebug(status bool)
- func (l *Logging) Trace(level int, args ...interface{})
- func (l *Logging) Tracef(level int, msg string, args ...interface{})
- func (l *Logging) Warn(msg string, args ...interface{})
- func (l *Logging) Warnf(msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, args ...interface{})
Debug is a function that logs a debug entry.
func Error ¶
func Error(msg string, args ...interface{})
Error is a function that logs a debug entry.
func Fatal ¶
func Fatal(msg string, args ...interface{})
Fatal is a function that logs a debug entry.
Types ¶
type Logging ¶
type Logging struct { Package string // contains filtered or unexported fields }
Logging is the default logging mechanism
Click to show internal directories.
Click to hide internal directories.