SetOutput sets the log output to w. If SetOutput hasn't been called, the default behavior is to write to stdout.
(w io.Writer)
| 53 | // If SetOutput hasn't been called, |
| 54 | // the default behavior is to write to stdout. |
| 55 | func SetOutput(w io.Writer) { |
| 56 | logWriterMu.Lock() |
| 57 | logWriter = w |
| 58 | logWriterMu.Unlock() |
| 59 | } |
| 60 | |
| 61 | func appendPrefix(b []byte, keyval ...interface{}) []byte { |
| 62 | // Invariant: len(keyval) is always even. |
no outgoing calls