Documentation ¶
Index ¶
- func Debug(message string, fields ...interface{})
- func Error(message string, fields ...interface{})
- func Fatal(message string, fields ...interface{})
- func GetLogger() *zap.Logger
- func Info(message string, fields ...interface{})
- func ObserveLogging(level zapcore.Level) *observer.ObservedLogs
- func Warn(message string, fields ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(message string, fields ...interface{})
Debug logs a debug message with the given fields
func Error ¶
func Error(message string, fields ...interface{})
Error logs a debug message with the given fields
func Fatal ¶
func Fatal(message string, fields ...interface{})
Fatal logs a message than calls os.Exit(1)
func Info ¶
func Info(message string, fields ...interface{})
Info logs a debug message with the given fields
func ObserveLogging ¶
func ObserveLogging(level zapcore.Level) *observer.ObservedLogs
ObserveLogging constructs a logger through the zap/zaptest/observer framework so that logs will be accessible in tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.