Documentation ¶
Index ¶
- Constants
- func Debug(message string, fields ...zap.Field)
- func Error(message string, fields ...zap.Field)
- func Fatal(message string, fields ...zap.Field)
- func Info(message string, fields ...zap.Field)
- func InitLogger(logLevel string, logFile string, isProd bool) error
- func NewSugar(name string) *zap.SugaredLogger
- func Warn(message string, fields ...zap.Field)
Constants ¶
View Source
const ( // DPanic, Panic and Fatal level can not be set by user DebugLevelStr string = "debug" InfoLevelStr string = "info" WarningLevelStr string = "warning" ErrorLevelStr string = "error" )
Variables ¶
This section is empty.
Functions ¶
func NewSugar ¶
func NewSugar(name string) *zap.SugaredLogger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.