mirror of
https://github.com/status-im/consul.git
synced 2025-02-04 18:03:39 +00:00
13eefbb840
* fixes file name for consul * added log file * added tests for rename method * append instead of trunc * fix file truncate issue * added changelog * fix for build destros ci * removed changelog * solaris
15 lines
344 B
Go
15 lines
344 B
Go
package logging
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
func (l *LogFile) createTime(stat os.FileInfo) time.Time {
|
|
// Use `ModTime` as an approximation if the exact create time is not
|
|
// available.
|
|
// On Windows, the file create time is not updated after the active log
|
|
// rotates, so use `ModTime` as an approximation as well.
|
|
return stat.ModTime()
|
|
}
|