logger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WindowsLogFilePath represents the log file location on Windows.
	WindowsLogFilePath = "C:\\ProgramData\\Amazon\\AwsOTelCollector\\Logs\\aws-otel-collector.log"

	// UnixLogFilePath represents the log file location on Unix-y operating
	// systems like Linux and Mac.
	UnixLogFilePath = "/opt/aws/aws-otel-collector/logs/aws-otel-collector.log"
)

Variables

This section is empty.

Functions

func GetLumberHook

func GetLumberHook() func(e zapcore.Entry) error

GetLumberHook returns lumberjackLogger as a Zap hook for processing log size and log rotation

func SetLogLevel

func SetLogLevel()

SetLogLevel allow to set log level by environment vars possible values (DEBUG, INFO, WARN, ERROR, DPANIC, PANIC, FATAL)

func SetupErrorLogger

func SetupErrorLogger()

SetupErrorLogger setup lumberjackLogger for go logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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