add a SetReportCaller on Logger object

This commit is contained in:
David Bariod
2018-10-27 15:19:06 +02:00
parent 64d5b7e66c
commit 5fcd19eae6
2 changed files with 7 additions and 3 deletions
+1 -3
View File
@@ -27,9 +27,7 @@ func SetFormatter(formatter Formatter) {
// SetReportCaller sets whether the standard logger will include the calling
// method as a field.
func SetReportCaller(include bool) {
std.mu.Lock()
defer std.mu.Unlock()
std.ReportCaller = include
std.SetReportCaller(include)
}
// SetLevel sets the standard logger level.