This commit is contained in:
Dave Clendenan
2017-08-30 15:39:09 -07:00
34 changed files with 668 additions and 349 deletions
+2 -2
View File
@@ -39,14 +39,14 @@ func SetReportCaller(include bool) {
func SetLevel(level Level) {
std.mu.Lock()
defer std.mu.Unlock()
std.Level = level
std.SetLevel(level)
}
// GetLevel returns the standard logger level.
func GetLevel() Level {
std.mu.Lock()
defer std.mu.Unlock()
return std.Level
return std.level()
}
// AddHook adds a hook to the standard logger hooks.