log

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogPath is the path where log files are stored.
	LogPath = "/var/log/"
)

Variables

View Source
var Logger *zap.Logger

Functions

func Initialize added in v1.5.7

func Initialize(ctx context.Context, cfg *Config)

Initializes a Zap logger and returns a cleanup function so logger can be cleaned up from caller

func InitializeMock

func InitializeMock()

Types

type Config added in v1.5.7

type Config struct {
	Level       zapcore.Level
	LogPath     string
	MaxSizeInMB int
	MaxBackups  int
	Name        string
}

Jump to

Keyboard shortcuts

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