logger

package
v0.0.0-...-45ec842 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush()

func GetLevel

func GetLevel() string

func Initialize

func Initialize(svc, hostname string, config LoggerConfig)

func ProdEncoderConf

func ProdEncoderConf() zapcore.EncoderConfig

func SetLevel

func SetLevel(l string)

func SetVerbosity

func SetVerbosity(w http.ResponseWriter, r *http.Request)

func Verbosity

func Verbosity(w http.ResponseWriter, r *http.Request)

Types

type LogFile

type LogFile struct {
	Path       string
	MaxSize    int
	MaxBackups int
	MaxAge     int
}

type LoggerConfig

type LoggerConfig struct {
	LogLevel       string
	LogMethod      string
	LogFile        LogFile
	VectorEndpoint string
}

Jump to

Keyboard shortcuts

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