Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(args ...interface{})
- func DebugWithFields(l interface{}, f Fields)
- func Error(args ...interface{})
- func ErrorWithFields(l interface{}, f Fields)
- func Fatal(args ...interface{})
- func FatalWithFields(l interface{}, f Fields)
- func FromString(level string) logrus.Level
- func Info(args ...interface{})
- func InfoWithFields(l interface{}, f Fields)
- func Panic(args ...interface{})
- func PanicWithFields(l interface{}, f Fields)
- func SetLogFormatter(formatter logrus.Formatter)
- func SetLogLevel(level logrus.Level)
- func Warn(args ...interface{})
- func WarnWithFields(l interface{}, f Fields)
- type Fields
Constants ¶
const ( PANIC = logrus.PanicLevel // 0 FATAL = logrus.FatalLevel // 1 ERROR = logrus.ErrorLevel // 2 WARN = logrus.WarnLevel // 3 INFO = logrus.InfoLevel // 4 DEBUG = logrus.DebugLevel // 5 )
const ( PanicLevel = "panic" FatalLevel = "fatal" ErrorLevel = "error" WarnLevel = "warn" InfoLevel = "info" DebugLevel = "debug" )
Variables ¶
var LogLevels = map[string]logrus.Level{ PanicLevel: PANIC, FatalLevel: FATAL, ErrorLevel: ERROR, WarnLevel: WARN, InfoLevel: INFO, DebugLevel: DEBUG, }
Functions ¶
func Debug ¶
func Debug(args ...interface{})
Debug logs a message at level Debug on the standard logger.
func DebugWithFields ¶
func DebugWithFields(l interface{}, f Fields)
Debug logs a message with fields at level Debug on the standard logger.
func Error ¶
func Error(args ...interface{})
Error logs a message at level Error on the standard logger.
func ErrorWithFields ¶
func ErrorWithFields(l interface{}, f Fields)
Debug logs a message with fields at level Debug on the standard logger.
func Fatal ¶
func Fatal(args ...interface{})
Fatal logs a message at level Fatal on the standard logger.
func FatalWithFields ¶
func FatalWithFields(l interface{}, f Fields)
Debug logs a message with fields at level Debug on the standard logger.
func FromString ¶
func Info ¶
func Info(args ...interface{})
Info logs a message at level Info on the standard logger.
func InfoWithFields ¶
func InfoWithFields(l interface{}, f Fields)
Debug logs a message with fields at level Debug on the standard logger.
func Panic ¶
func Panic(args ...interface{})
Panic logs a message at level Panic on the standard logger.
func PanicWithFields ¶
func PanicWithFields(l interface{}, f Fields)
Debug logs a message with fields at level Debug on the standard logger.
func SetLogFormatter ¶
func SetLogLevel ¶
func Warn ¶
func Warn(args ...interface{})
Warn logs a message at level Warn on the standard logger.
func WarnWithFields ¶
func WarnWithFields(l interface{}, f Fields)
Debug logs a message with fields at level Debug on the standard logger.