Documentation
¶
Index ¶
- func CallerEncoderOf(caller_type string) zapcore.CallerEncoder
- func LevelEncoderOf(level_type string) zapcore.LevelEncoder
- func NewZaplogbackEncoder(cfg zapcore.EncoderConfig, log_format string) zapcore.Encoder
- func RegisterLogbackEncoder(encoding string, logformat string) error
- func StrftimeFormatLayout(layout string) string
- func TimeEncoderOf(layout string) zapcore.TimeEncoder
- type EMPTY
- type LogbackConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerEncoderOf ¶
func CallerEncoderOf(caller_type string) zapcore.CallerEncoder
func LevelEncoderOf ¶
func LevelEncoderOf(level_type string) zapcore.LevelEncoder
func NewZaplogbackEncoder ¶
func NewZaplogbackEncoder(cfg zapcore.EncoderConfig, log_format string) zapcore.Encoder
func RegisterLogbackEncoder ¶
func StrftimeFormatLayout ¶
func TimeEncoderOf ¶
func TimeEncoderOf(layout string) zapcore.TimeEncoder
Types ¶
type LogbackConfig ¶
type LogbackConfig struct {
EncodeLevel zapcore.LevelEncoder
EncodeTime zapcore.TimeEncoder
EncodeCaller zapcore.CallerEncoder
// contains filtered or unexported fields
}
func Parse_compile_log_format ¶
func Parse_compile_log_format(log_format string) LogbackConfig
log_format := `%date{2024-12-01 12:34:56.789} %level{upper} %caller ["tid":%x{tid}]} %message %fields`
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
bufferpool
Package bufferpool houses zap's shared internal buffer pool.
|
Package bufferpool houses zap's shared internal buffer pool. |
|
pool
Package pool provides internal pool utilities.
|
Package pool provides internal pool utilities. |
|
test
command
|
Click to show internal directories.
Click to hide internal directories.