Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Настраиваемый log #26

Closed
codinv opened this issue Aug 29, 2023 · 1 comment
Closed

Настраиваемый log #26

codinv opened this issue Aug 29, 2023 · 1 comment

Comments

@codinv
Copy link

codinv commented Aug 29, 2023

Доброго дня, как то можно отключить вывод в лог событий INFO, оставив только WARN?
Иначе весь лог забивается одними и теми же записями, две строки каждую минуту:
либо данный тип сообщений не выводить в лог:

2023-08-29 16:56:34.941 INFO: Server info [ memUsage: 365.43MB, loadAvg: (0.04, 0.15, 0.16) ]
2023-08-29 16:56:34.941 INFO: Server accessible at http://127.0.0.1:12380 (listening on 0.0.0.0:12380)
2023-08-29 16:57:34.965 INFO: Server info [ memUsage: 365.43MB, loadAvg: (0.05, 0.14, 0.16) ]
2023-08-29 16:57:34.965 INFO: Server accessible at http://127.0.0.1:12380 (listening on 0.0.0.0:12380)
2023-08-29 16:58:35.007 INFO: Server info [ memUsage: 365.43MB, loadAvg: (0.17, 0.16, 0.16) ]
2023-08-29 16:58:35.007 INFO: Server accessible at http://127.0.0.1:12380 (listening on 0.0.0.0:12380)
2023-08-29 16:59:35.018 INFO: Server info [ memUsage: 365.43MB, loadAvg: (0.21, 0.18, 0.17) ]
2023-08-29 16:59:35.018 INFO: Server accessible at http://127.0.0.1:12380 (listening on 0.0.0.0:12380)
2023-08-29 17:00:35.077 INFO: Server info [ memUsage: 365.43MB, loadAvg: (0.25, 0.19, 0.18) ]
2023-08-29 17:00:35.077 INFO: Server accessible at http://127.0.0.1:12380 (listening on 0.0.0.0:12380)

@partizand
Copy link

Поддерживаю. Зачем то пишет каждую минуту.
Еще неплохо log вынести в системный лог /var/log или syslog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants