Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UnixLogPath = "/opt/aws/aws-otel-collector/logs/aws-otel-collector.log"
View Source
var WindowsLogPath = "C:\\ProgramData\\Amazon\\AWSOTelCollector\\Logs\\aws-otel-collector.log"
Functions ¶
func GetLumberHook ¶
GetLumberHook returns lumberjackLogger as a Zap hook for processing log size and log rotation
func SetLogLevel ¶
func SetLogLevel(level string)
SetLogLevel allows to set log level by parameter 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.