Skip to content

Commit

Permalink
add log formatter config
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Bronin committed Jan 21, 2019
1 parent bdb9c7c commit 8174e47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions configuration/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ package configuration

// Log holds configuration for logging
type Log struct {
Level string
Adapter string
Level string
Adapter string
Formatter string
}

// NewLog creates new default configuration for logging
func NewLog() Log {
return Log{Level: "Info", Adapter: "logrus"}
return Log{Level: "Info", Adapter: "logrus", Formatter: "text"}
}

0 comments on commit 8174e47

Please sign in to comment.