Documentation ¶
Index ¶
- func Debug(msg string, keysAndValues ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(msg string, keysAndValues ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(msg string, keysAndValues ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(msg string, keysAndValues ...interface{})
- func Infof(template string, args ...interface{})
- func Panic(msg string, keysAndValues ...interface{})
- func Panicf(template string, args ...interface{})
- func Warn(msg string, keysAndValues ...interface{})
- func Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, keysAndValues ...interface{})
Debug logs a message with some additional context. The variadic key-value pairs are treated as they are in With.
When debug-level logging is disabled, this is much faster than
s.With(keysAndValues).Debug(msg)
func Debugf ¶
func Debugf(template string, args ...interface{})
Debugf uses fmt.Sprintf to log a templated message.
func Error ¶
func Error(msg string, keysAndValues ...interface{})
Error logs a message with some additional context. The variadic key-value pairs are treated as they are in With.
func Errorf ¶
func Errorf(template string, args ...interface{})
Errorf uses fmt.Sprintf to log a templated message.
func Fatal ¶
func Fatal(msg string, keysAndValues ...interface{})
Fatal logs a message with some additional context, then calls os.Exit. The variadic key-value pairs are treated as they are in With.
func Fatalf ¶
func Fatalf(template string, args ...interface{})
Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.
func Info ¶
func Info(msg string, keysAndValues ...interface{})
Info logs a message with some additional context. The variadic key-value pairs are treated as they are in With.
func Infof ¶
func Infof(template string, args ...interface{})
Infof uses fmt.Sprintf to log a templated message.
func Panic ¶
func Panic(msg string, keysAndValues ...interface{})
Panic logs a message with some additional context, then panics. The variadic key-value pairs are treated as they are in With.
func Panicf ¶
func Panicf(template string, args ...interface{})
Panicf uses fmt.Sprintf to log a templated message, then panics.
Types ¶
This section is empty.