Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IlogrusRotate ¶
type IlogrusRotate interface { // Корневой каталог логов LogDir() string // Формат времени каталога логов, например "02.01.2006" FormatDir() string // Формат времени файла логов, например "15.04.05" FormatFile() string // Время жизни всех логов (в часах). Сколько часов могут жить логи (при превышении логи удаляются). // Не может быть меньше или равен значению TimeRotate TTLLogs() int // Время ротации логов (в часах). Через сколько часов создасться новый файл, минимальное время 1 час. TimeRotate() int }
type Rotate ¶
type Rotate struct {
// contains filtered or unexported fields
}
func (*Rotate) DeleteEmptyFile ¶ added in v1.0.1
func (*Rotate) Start ¶
func (r *Rotate) Start(LogLevel int, conf IlogrusRotate) func()
Click to show internal directories.
Click to hide internal directories.