(code int)
| 340 | } |
| 341 | |
| 342 | func (logger *Logger) Exit(code int) { |
| 343 | runHandlers() |
| 344 | if logger.ExitFunc == nil { |
| 345 | logger.ExitFunc = os.Exit |
| 346 | } |
| 347 | logger.ExitFunc(code) |
| 348 | } |
| 349 | |
| 350 | // SetNoLock disables the lock for situations where a file is opened with |
| 351 | // appending mode, and safe for concurrent writes to the file (within 4k |