Skip to content

Commit

Permalink
internal/apmlog: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Dec 10, 2020
1 parent 9636bdb commit 4e2e909
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions internal/apmlog/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ import (
)

const (
EnvLogFile = "ELASTIC_APM_LOG_FILE"
EnvLogLevel = "ELASTIC_APM_LOG_LEVEL"
// EnvLogFile is the environment variable that controls where the default logger writes.
EnvLogFile = "ELASTIC_APM_LOG_FILE"

// EnvLogLevel is the environment variable that controls the default logger's level.
EnvLogLevel = "ELASTIC_APM_LOG_LEVEL"

// DefaultLevel holds the default log level, if EnvLogLevel is not specified.
DefaultLevel Level = ErrorLevel
)

Expand Down Expand Up @@ -87,6 +92,7 @@ func InitDefaultLogger() {
DefaultLogger = &LevelLogger{w: logWriter, level: logLevel}
}

// Log levels.
const (
DebugLevel Level = iota
InfoLevel
Expand All @@ -96,6 +102,7 @@ const (
OffLevel
)

// Level represents a log level.
type Level uint32

func (l Level) String() string {
Expand Down

0 comments on commit 4e2e909

Please sign in to comment.