Close closes underlying output in Out.
()
| 207 | |
| 208 | // Close closes underlying output in Out. |
| 209 | func (l *Logger) Close() error { |
| 210 | if l.Out == nil { |
| 211 | return nil |
| 212 | } |
| 213 | |
| 214 | return l.Out.Close() |
| 215 | } |
| 216 | |
| 217 | // DebugWriter returns a writer that will act like Logger.Write |
| 218 | // but will use debug flag on messages. If Logger.Debug is false, |