VerbosePrintfLogger wraps a Printf-based logger (such as the standard library "log") into an implementation of the Logger interface which logs everything.
(l interface{ Printf(string, ...interface{}) })
| 32 | // VerbosePrintfLogger wraps a Printf-based logger (such as the standard library |
| 33 | // "log") into an implementation of the Logger interface which logs everything. |
| 34 | func VerbosePrintfLogger(l interface{ Printf(string, ...interface{}) }) Logger { |
| 35 | return printfLogger{l, true} |
| 36 | } |
| 37 | |
| 38 | type printfLogger struct { |
| 39 | logger interface{ Printf(string, ...interface{}) } |
no outgoing calls