Merge pull request #779 from daskol/iss-241
[#241] Allow to set writer during logger usage.
This commit is contained in:
+1
-3
@@ -15,9 +15,7 @@ func StandardLogger() *Logger {
|
||||
|
||||
// SetOutput sets the standard logger output.
|
||||
func SetOutput(out io.Writer) {
|
||||
std.mu.Lock()
|
||||
defer std.mu.Unlock()
|
||||
std.Out = out
|
||||
std.SetOutput(out)
|
||||
}
|
||||
|
||||
// SetFormatter sets the standard logger formatter.
|
||||
|
||||
Reference in New Issue
Block a user