Hook is a hook that writes logs of specified LogLevels to specified Writer
| 8 | |
| 9 | // Hook is a hook that writes logs of specified LogLevels to specified Writer |
| 10 | type Hook struct { |
| 11 | Writer io.Writer |
| 12 | LogLevels []log.Level |
| 13 | } |
| 14 | |
| 15 | // Fire will be called when some logging function is called with current hook |
| 16 | // It will format log entry to string and write it to appropriate writer |
nothing calls this directly
no outgoing calls
no test coverage detected