logger

package
v0.0.0-...-ef3d5ad Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts ...LoggerOption) (*zap.Logger, error)

Types

type LoggerOption

type LoggerOption func(*zap.Config)

func WithEncoder

func WithEncoder(encoder string) LoggerOption

func WithLevel

func WithLevel(level zapcore.Level) LoggerOption

func WithOutputPaths

func WithOutputPaths(paths []string) LoggerOption

type Option

type Option func(*options)

Jump to

Keyboard shortcuts

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