PrintfLogger wraps a Printf-based logger (such as the standard library "log") into an implementation of the Logger interface which logs errors only.
(l interface{ Printf(string, ...interface{}) })
| 26 | // PrintfLogger wraps a Printf-based logger (such as the standard library "log") |
| 27 | // into an implementation of the Logger interface which logs errors only. |
| 28 | func PrintfLogger(l interface{ Printf(string, ...interface{}) }) Logger { |
| 29 | return printfLogger{l, false} |
| 30 | } |
| 31 | |
| 32 | // VerbosePrintfLogger wraps a Printf-based logger (such as the standard library |
| 33 | // "log") into an implementation of the Logger interface which logs everything. |
no outgoing calls