zap

package
v0.4.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinSplitLogFileSize = 1024 * 1024
)

Variables

This section is empty.

Functions

func CapitalLevelEncoder

func CapitalLevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)

func LogNameEncoder

func LogNameEncoder(loggerName string, enc zapcore.PrimitiveArrayEncoder)

func NewLogger

func NewLogger(opts ...slog.Option) (slog.BoxLogger, error)

NewLogger builds a new logger based on options

func ShortEncodeCaller added in v0.4.8

func ShortEncodeCaller(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder)

Types

type Options

type Options struct {
	*slog.Options
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL