Nop returns a disabled logger for which all operation are no-op.
()
| 256 | |
| 257 | // Nop returns a disabled logger for which all operation are no-op. |
| 258 | func Nop() Logger { |
| 259 | return New(nil).Level(Disabled) |
| 260 | } |
| 261 | |
| 262 | // Output duplicates the current logger and sets w as its output. |
| 263 | func (l Logger) Output(w io.Writer) Logger { |