logger

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

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(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.

Jump to

Keyboard shortcuts

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