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 ¶
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.
Click to show internal directories.
Click to hide internal directories.