logger

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 10 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"
	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

func WrapCoreOpt() zap.Option

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.

Jump to

Keyboard shortcuts

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