logging

package
v0.13.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultLogDirName = "logs"
)

Variables

This section is empty.

Functions

func SetUp

func SetUp(logLevel string, logToStdout bool, logDir string, logRotateArgs *RotateLogArgs) error

func WithContext

func WithContext() context.Context

Types

type RotateLogArgs

type RotateLogArgs struct {
	RotateLogMaxSize    int
	RotateLogMaxBackups int
	RotateLogMaxAge     int
	RotateLogLocalTime  bool
	RotateLogCompress   bool
}

Jump to

Keyboard shortcuts

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