The StdLogger interface is implemented by standard *log.Logger values. Values that implement either StdLogger or QmlLogger may be provided to the SetLogger function.
| 51 | // Values that implement either StdLogger or QmlLogger may be provided |
| 52 | // to the SetLogger function. |
| 53 | type StdLogger interface { |
| 54 | // Output is called whenever a new message is available for logging. |
| 55 | // See the standard log.Logger type for more details. |
| 56 | Output(calldepth int, s string) error |
| 57 | } |
| 58 | |
| 59 | // NOTE: LogMessage is an interface to avoid allocating and copying |
| 60 | // several strings for each logged message. |