MCPcopy
hub / github.com/natefinch/lumberjack / max

Method max

lumberjack.go:445–450  ·  view source on GitHub ↗

max returns the maximum size in bytes of log files before rolling.

()

Source from the content-addressed store, hash-verified

443
444// max returns the maximum size in bytes of log files before rolling.
445func (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.
453func (l *Logger) dir() string {

Callers 2

WriteMethod · 0.95
openExistingOrNewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected