Граф коммитов

1 Коммитов

Автор SHA1 Сообщение Дата
Amarjeet Anand 3ad2709a84 internal/log: add log level support
This change introduces minimum log level support.
GO_DISCOVERY_LOG_LEVEL config can be used to set the log level.

When set, no logs below GO_DISCOVERY_LOG_LEVEL will be printed.
Possible log levels are debug, info, error, fatal.

Log severity sequence is debug < info < error < fatal.
In case of invalid/empty log level, it print all logs.

Fixes golang/go#40339

Change-Id: I66116e6778eb6386bf1e8df6947078a78fece691
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/245797
Reviewed-by: Julie Qiu <julie@golang.org>
2020-08-06 13:27:19 +00:00