max returns the maximum size in bytes of log files before rolling.
()
| 443 | |
| 444 | // max returns the maximum size in bytes of log files before rolling. |
| 445 | func (l *Logger) max() int64 { |
| 446 | if l.MaxSize == 0 { |
| 447 | return int64(defaultMaxSize * megabyte) |
| 448 | } |
| 449 | return int64(l.MaxSize) * int64(megabyte) |
| 450 | } |
| 451 | |
| 452 | // dir returns the directory for the current filename. |
| 453 | func (l *Logger) dir() string { |
no outgoing calls
no test coverage detected