logger

package
v0.0.0-...-9d047d7 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultProductionConfig

func NewDefaultProductionConfig() *zap.Config

NewDefaultProductionConfig return custom default zap config

func SetLogLevel

func SetLogLevel(level string) zap.AtomicLevel

Types

type OhMyLog

type OhMyLog struct {
	Logger *zap.Logger
}

func NewLogger

func NewLogger(options *OhMyLogOptions) (OhMyLog, error)

type OhMyLogOptions

type OhMyLogOptions struct {
	Encoding    string
	LogLevel    string
	EncodeLevel string
	TimeKey     string
	Colored     bool
}

Jump to

Keyboard shortcuts

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