logger

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 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.

func WithEncoderConfig

func WithEncoderConfig(encoderConfig zapcore.EncoderConfig) option

func WithLevel

func WithLevel(level zapcore.Level) option

func WithOutputPaths

func WithOutputPaths(path string) option

Types

This section is empty.

Jump to

Keyboard shortcuts

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