Skip to content

Logging configuration

Sergei Egorov edited this page Feb 15, 2016 · 1 revision

By default, Configo will log with WARNING debug level.

You can change logging level with CONFIGO_LOG_LEVEL environment variable. Values that are allowed include: CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG.

If logging pattern doesn't suit you, you can change CONFIGO_LOG_PATTERN environment variable. See https://godoc.org/github.com/op/go-logging#NewStringFormatter for details.

Default pattern is:

%{color}%{time:15:04:05.999} [%{level:.1s}] %{message}%{color:reset}
Clone this wiki locally