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

Function logFile

lumberjack_test.go:733–735  ·  view source on GitHub ↗

logFile returns the log file name in the given directory for the current fake time.

(dir string)

Source from the content-addressed store, hash-verified

731// logFile returns the log file name in the given directory for the current fake
732// time.
733func logFile(dir string) string {
734 return filepath.Join(dir, "foobar.log")
735}
736
737func backupFile(dir string) string {
738 return filepath.Join(dir, "foobar-"+fakeTime().UTC().Format(backupTimeFormat)+".log")

Callers 15

TestMaintainModeFunction · 0.85
TestMaintainOwnerFunction · 0.85
TestCompressMaintainModeFunction · 0.85
TestNewFileFunction · 0.85
TestOpenExistingFunction · 0.85
TestWriteTooLongFunction · 0.85
TestMakeLogDirFunction · 0.85
TestAutoRotateFunction · 0.85
TestFirstWriteRotateFunction · 0.85
TestMaxBackupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…