add io.Writer interface compatability
This commit is contained in:
@@ -9,6 +9,10 @@ var (
|
||||
std = New()
|
||||
)
|
||||
|
||||
func StandardLogger() *Logger {
|
||||
return std
|
||||
}
|
||||
|
||||
// SetOutput sets the standard logger output.
|
||||
func SetOutput(out io.Writer) {
|
||||
std.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user