Documentation ¶
Index ¶
- Constants
- func Debug(message string)
- func DebugWithFields(message string, fields FieldsMap)
- func Debugf(format string, args ...interface{})
- func DebugfWithFields(format string, fields FieldsMap, args ...interface{})
- func Error(message string)
- func ErrorWithFields(message string, fields FieldsMap)
- func Errorf(format string, args ...interface{})
- func ErrorfWithFields(format string, fields FieldsMap, args ...interface{})
- func Fatal(message string)
- func FatalWithFields(message string, fields FieldsMap)
- func Fatalf(format string, args ...interface{})
- func FatalfWithFields(format string, fields FieldsMap, args ...interface{})
- func Info(message string)
- func InfoWithFields(message string, fields FieldsMap)
- func Infof(format string, args ...interface{})
- func InfofWithFields(format string, fields FieldsMap, args ...interface{})
- func Panic(message string)
- func PanicWithFields(message string, fields FieldsMap)
- func Panicf(format string, args ...interface{})
- func PanicfWithFields(format string, fields FieldsMap, args ...interface{})
- func SetLevel(newLevel Level)
- func SetOutput(writer io.Writer)
- func Trace(message string)
- func TraceWithFields(message string, fields FieldsMap)
- func Tracef(format string, args ...interface{})
- func TracefWithFields(format string, fields FieldsMap, args ...interface{})
- func Warn(message string)
- func WarnWithFields(message string, fields FieldsMap)
- func Warnf(format string, args ...interface{})
- func WarnfWithFields(format string, fields FieldsMap, args ...interface{})
- type FieldsMap
- type Level
Constants ¶
const ( // LevelTrace is the log level for tracing. LevelTrace = iota // LevelDebug is the log level for debugging. LevelDebug // LevelInfo is the log level for informational messages. LevelInfo // LevelWarn is the log level for warnings. LevelWarn // LevelError is the log level for errors. LevelError // LevelFatal is the log level for fatal errors. LevelFatal // LevelPanic is the log level for panics. LevelPanic )
Variables ¶
This section is empty.
Functions ¶
func DebugWithFields ¶
DebugWithFields logs a message at the debug level with additional fields.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs a formatted message at the debug level.
func DebugfWithFields ¶
DebugfWithFields logs a formatted message at the debug level with additional fields.
func ErrorWithFields ¶
ErrorWithFields logs a message at the error level with additional fields.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs a formatted message at the error level.
func ErrorfWithFields ¶
ErrorfWithFields logs a formatted message at the error level with additional fields.
func FatalWithFields ¶
FatalWithFields logs a message at the fatal level with additional fields.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs a formatted message at the fatal level.
func FatalfWithFields ¶
FatalfWithFields logs a formatted message at the fatal level with additional fields.
func InfoWithFields ¶
InfoWithFields logs a message at the info level with additional fields.
func Infof ¶
func Infof(format string, args ...interface{})
Infof logs a formatted message at the info level.
func InfofWithFields ¶
InfofWithFields logs a formatted message at the info level with additional fields.
func PanicWithFields ¶
PanicWithFields logs a message at the panic level with additional fields.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf logs a formatted message at the panic level.
func PanicfWithFields ¶
PanicfWithFields logs a formatted message at the panic level with additional fields.
func TraceWithFields ¶
TraceWithFields logs a message at the trace level with additional fields.
func Tracef ¶
func Tracef(format string, args ...interface{})
Tracef logs a formatted message at the trace level.
func TracefWithFields ¶
TracefWithFields logs a formatted message at the trace level with additional fields.
func WarnWithFields ¶
WarnWithFields logs a message at the warn level with additional fields.
func Warnf ¶
func Warnf(format string, args ...interface{})
Warnf logs a formatted message at the warn level.
func WarnfWithFields ¶
WarnfWithFields logs a formatted message at the warn level with additional fields.