logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel struct {
	Atomic  zap.AtomicLevel
	Default string
}

func NewLogReconfigurer

func NewLogReconfigurer(atomic zap.AtomicLevel) *LogLevel

func (*LogLevel) ChangeLogLevel

func (l *LogLevel) ChangeLogLevel(logLevel string) error

func (*LogLevel) SetDefaultLogLevel

func (l *LogLevel) SetDefaultLogLevel() error

type Logger

type Logger struct {
	*logger.Logger
}

func New

func New(format, level string, atomic zap.AtomicLevel) (*Logger, error)

New returns a new logger with the given format and level.

Jump to

Keyboard shortcuts

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