/
egovorukhin
/
egolog
Обзор
Документация
Войти
/
egovorukhin
/
egolog
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
log.yml
22 строки
1 KB
Govorukhin
update version
10 фев 2022, 11:41
10 фев 2022, 11:41
8bb2e91
Код
Авторство
О чём код?
# Ldate(1) = 1 << iota the date in the local time zone: 2009/01/23 # Ltime(2) the time in the local time zone: 01:23:23 # Lmicroseconds(4) microsecond resolution: 01:23:23.123123. assumes Ltime. # Llongfile(8) full file name and line number: /a/b/c/d.go:23 # Lshortfile(16) final file name element and line number: d.go:23. overrides Llongfile # LUTC(32) if Ldate or Ltime is set, use UTC rather than the local time zone # Lmsgprefix(64) move the "prefix" from the beginning of the line to before the message # LstdFlags(3) = Ldate | Ltime initial values for the standard logger console: false file_path: logs file_name: info: 3 error: 3 | 16 debug: 1 | 4 | 8 # Ротация файлов # size - размер файла после которого нужно перемещать файл, указывается в КБ # format - имя перемещаемого файла %name - имя основного файла, %time - время переименования # path - путь куда переместить файл, если путь пустой, то оставляем файл на месте rotation: size: 10240 format: '%name_%time' path: