logger

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGLEVEL_ENV_VAR           = "ECS_LOGLEVEL"
	LOGFILE_ENV_VAR            = "ECS_LOGFILE"
	LOG_ROLLOVER_TYPE_ENV_VAR  = "ECS_LOG_ROLLOVER_TYPE"
	LOG_OUTPUT_FORMAT_ENV_VAR  = "ECS_LOG_OUTPUT_FORMAT"
	LOG_MAX_FILE_SIZE_ENV_VAR  = "ECS_LOG_MAX_FILE_SIZE_MB"
	LOG_MAX_ROLL_COUNT_ENV_VAR = "ECS_LOG_MAX_ROLL_COUNT"

	DEFAULT_LOGLEVEL               = "info"
	DEFAULT_ROLLOVER_TYPE          = "date"
	DEFAULT_OUTPUT_FORMAT          = "logfmt"
	DEFAULT_MAX_FILE_SIZE  float64 = 10
	DEFAULT_MAX_ROLL_COUNT int     = 24
)

Variables

View Source
var Config *logConfig

Functions

func GetLevel added in v1.14.5

func GetLevel() string

GetLevel gets the log level

func SetLevel

func SetLevel(logLevel string)

SetLevel sets the log level for logging

Types

This section is empty.

Directories

Path Synopsis
mocks
Package mock_audit is a generated GoMock package.
Package mock_audit is a generated GoMock package.

Jump to

Keyboard shortcuts

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