Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSameHour ¶
func MakeDailyRotateInDir ¶
Types ¶
type File ¶
type File struct { sync.Mutex // Path is the path of the current file Path string // contains filtered or unexported fields }
func NewDaily ¶
func NewDaily(dir string, fileUniqueName string, didClose func(path string, didRotate bool)) (*File, error)
NewDaily creates a new file, rotating daily in a given directory
func NewHourly ¶
func NewHourly(dir string, logUniqueName string, didClose func(path string, didRotate bool)) (*File, error)
NewHourly creates a new file, rotating hourly in a given directory
Click to show internal directories.
Click to hide internal directories.