The Formatter interface is used to implement a custom Formatter. It takes an `Entry`. It exposes all the fields, including the default ones: * `entry.Data["msg"]`. The message passed from Info, Warn, Error .. * `entry.Data["time"]`. The timestamp. * `entry.Data["level"]. The level the entry was log
| 24 | // `entry.Data`. Format is expected to return an array of bytes which are then |
| 25 | // logged to `logger.Out`. |
| 26 | type Formatter interface { |
| 27 | Format(*Entry) ([]byte, error) |
| 28 | } |
| 29 | |
| 30 | // This is to not silently overwrite `time`, `msg`, `func` and `level` fields when |
| 31 | // dumping it. If this code wasn't there doing: |
no outgoing calls
no test coverage detected