Documentation ¶
Index ¶
- Variables
- func ConfigConsoleOutput(config zapcore.EncoderConfig, level zapcore.Level) zapcore.Core
- func ConfigFileRotationOutput(config zapcore.EncoderConfig, jackConfig *lumberjack.Logger, ...) zapcore.Core
- func CreateCombineLogger(config *lumberjack.Logger) *zap.Logger
- func CreateConsoleLogger() *zap.Logger
- func CreateDefaultLogger() *zap.Logger
- func CreateFileRotationLogger(config *lumberjack.Logger) *zap.Logger
- func InitLogger(config Config) *zap.Logger
- func ToString(logger *lumberjack.Logger) string
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsoleEncodingConfig = zapcore.EncoderConfig{ MessageKey: "msg", LevelKey: "level", TimeKey: "ts", NameKey: "name", CallerKey: "caller", StacktraceKey: "stacktrace", LineEnding: zapcore.DefaultLineEnding, EncodeLevel: zapcore.CapitalColorLevelEncoder, EncodeTime: zapcore.ISO8601TimeEncoder, EncodeDuration: zapcore.SecondsDurationEncoder, EncodeCaller: zapcore.ShortCallerEncoder, }
Functions ¶
func ConfigConsoleOutput ¶
ConfigConsoleOutput ConsoleEncoding Configuration
func ConfigFileRotationOutput ¶
func ConfigFileRotationOutput(config zapcore.EncoderConfig, jackConfig *lumberjack.Logger, level zapcore.Level) zapcore.Core
ConfigFileRotationOutput RotationFileEncoding Configuration
func CreateCombineLogger ¶
CreateCombineLogger Create a merged Logger instance
func CreateConsoleLogger ¶
func CreateDefaultLogger ¶
func InitLogger ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.