Commit fee9df4c by Dieter Plaetinck

Merge pull request #4065 from grafana/log-level-fix

allow setting level on logger.
parents ffc9a832 5d7d165b
......@@ -35,6 +35,15 @@ func NewLogger(bufLen int64, mode, config string) {
}
}
// this helps you work around the performance annoyance mentioned in
// https://github.com/grafana/grafana/issues/4055
// until we refactor this library completely
func Level(level LogLevel) {
for i := range loggers {
loggers[i].level = level
}
}
func Trace(format string, v ...interface{}) {
for _, logger := range loggers {
logger.Trace(format, v...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment