Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerImpl ¶
type HandlerImpl struct { Prefix string Ext string MaxSize int64 KeepDays int MaxIndex int // contains filtered or unexported fields }
func (*HandlerImpl) GetFilename ¶
func (h *HandlerImpl) GetFilename(t time.Time) (string, error)
GetFilename returns filename like `server.2021-09-07.0.log`
func (*HandlerImpl) OnOpenFile ¶
func (h *HandlerImpl) OnOpenFile(file *os.File)
func (*HandlerImpl) Prune ¶
func (h *HandlerImpl) Prune(now time.Time)
Click to show internal directories.
Click to hide internal directories.