WithFile enables JSON log output to the supplied file path.
(path string)
| 46 | |
| 47 | // WithFile enables JSON log output to the supplied file path. |
| 48 | func WithFile(path string) Option { |
| 49 | return func(opts *options) { |
| 50 | opts.filePath = path |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // WithFileRotation enables lumberjack-backed rotation for the structured file sink. |
| 55 | func WithFileRotation(rotation FileRotationConfig) Option { |
no outgoing calls