LogOptionsSetter is an interface implemented by stdlib's log and charm's log libraries.
| 27 | // LogOptionsSetter is an interface implemented by stdlib's log and charm's log |
| 28 | // libraries. |
| 29 | type LogOptionsSetter interface { |
| 30 | SetOutput(io.Writer) |
| 31 | SetPrefix(string) |
| 32 | } |
| 33 | |
| 34 | // LogToFileWith does allows to call LogToFile with a custom LogOptionsSetter. |
| 35 | func LogToFileWith(path string, prefix string, log LogOptionsSetter) (*os.File, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…