Documentation ¶
Index ¶
- func BuildLogger(level zapcore.Level) error
- func Debug(ctx context.Context, msg string, body Field, customs ...Field)
- func Error(ctx context.Context, msg string, body Field, customs ...Field)
- func Fatal(ctx context.Context, msg string, body Field, customs ...Field)
- func GetLoggerLevel() string
- func Info(ctx context.Context, msg string, body Field, customs ...Field)
- func Panic(ctx context.Context, msg string, body Field, customs ...Field)
- func SetLoggerLevel(level zapcore.Level)
- func Warn(ctx context.Context, msg string, body Field, customs ...Field)
- type Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLogger ¶
BuildLogger initializes new global logger with the given logger level
func GetLoggerLevel ¶
func GetLoggerLevel() string
GetLoggerLevel of the current logger configuration
func SetLoggerLevel ¶
SetLoggerLevel set global logger level
Types ¶
Click to show internal directories.
Click to hide internal directories.