Logger wraps Sink with a nice API to log entries. Logger is safe for concurrent use.
| 59 | // |
| 60 | // Logger is safe for concurrent use. |
| 61 | type Logger struct { |
| 62 | sinks []Sink |
| 63 | level Level |
| 64 | |
| 65 | names []string |
| 66 | fields Map |
| 67 | |
| 68 | skip int |
| 69 | exit func(int) |
| 70 | } |
| 71 | |
| 72 | // Make creates a logger that writes logs to the passed sinks at LevelInfo. |
| 73 | func Make(sinks ...Sink) Logger { |
nothing calls this directly
no outgoing calls
no test coverage detected