ForceProgress returns an options function that configures forced progress status on the logger.
(v bool)
| 51 | // ForceProgress returns an options function that configures forced progress status |
| 52 | // on the logger. |
| 53 | func ForceProgress(v bool) Option { |
| 54 | return func(l *Logger) { |
| 55 | l.forceProgress = v |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | // NewLogger returns a new *Logger instance that logs to "sink" and uses the |
| 60 | // current terminal width as the width of the line. Will log progress status if |
no outgoing calls