MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GenLogFileName

Method GenLogFileName

core/log/manager.go:47–53  ·  view source on GitHub ↗
(c *Config)

Source from the content-addressed store, hash-verified

45}
46
47func (m *manager) GenLogFileName(c *Config) (filename string) {
48 m.lock.Lock()
49 filename = path.Join(c.LogPath, c.FileName+"-"+m.startAt.Format(c.TimeTagFormat)) + c.LogSuffix
50 m.startAt = time.Now()
51 m.lock.Unlock()
52 return
53}

Callers 1

NewManagerFunction · 0.95

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected