Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnixLogPath = "/opt/aws/aws-otel-collector/logs/aws-otel-collector.log" WindowsLogPath = "C:\\ProgramData\\Amazon\\AWSOTelCollector\\Logs\\aws-otel-collector.log" )
Functions ¶
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
func WrapCoreOpt ¶ added in v0.16.0
WrapCoreOpt returns a zap.Option that wraps the provided core, teeing the output to the lumberjack writer. It uses a JSON encoder and the same level as the provided core. If the lumberjack logger is not configured returns the provided core unmodified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.