Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { LogPath string `mapstructure:"log_path"` LogLevel string `mapstructure:"log_level"` ServiceName string `mapstructure:"service_name"` }
Config is log conf
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is the default logging wrapper that can create sLogger instances either for a given Context or context-less.
var XFactory Factory
XFactory is default factory
type Logger ¶
type Logger interface { Info(msg string, fields ...zapcore.Field) Error(msg string, fields ...zapcore.Field) Fatal(msg string, fields ...zapcore.Field) Panic(msg string, fields ...zapcore.Field) With(fields ...zapcore.Field) Logger Warn(msg string, fields ...zapcore.Field) }
Logger is a simplified abstraction of the zap.Logger
Click to show internal directories.
Click to hide internal directories.