logger

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (*zap.SugaredLogger, error)

New returns a logger.

func ParseLogLevel

func ParseLogLevel(s string) (zapcore.Level, error)

ParseLogLevel parses s as a logrus log level. If the level is off, the return flag is set to true.

Types

type Option added in v1.5.8

type Option func(*zap.Config)

func WithEncoderConfig

func WithEncoderConfig(encoderConfig zapcore.EncoderConfig) Option

func WithLevel

func WithLevel(level zapcore.Level) Option

func WithOutputPaths

func WithOutputPaths(path string) Option

Jump to

Keyboard shortcuts

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