add io.Writer interface compatability

This commit is contained in:
Patrick Hemmer
2015-01-08 01:04:07 -05:00
parent d2f9ffa1d9
commit 299ee95277
2 changed files with 34 additions and 0 deletions
+4
View File
@@ -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()