The FieldLogger interface is satisfied by either *Logger or *Entry. Accepting this interface in place of the concrete *Logger type allows users to inject a logger with some fields already set. For example, the application developer might want all logging from the library to have a `subsystem=kcl` field. Signed-off-by: Mike Pye <mail@mdpye.co.uk> |
||
|---|---|---|
| .. | ||
| zap | ||
| logger.go | ||
| logger_test.go | ||
| logrus.go | ||