zulip/zulip

Add Logging Settings in /zulip/settings.py

Open

#15,973 建立於 2020年7月29日

在 GitHub 查看
 (18 留言) (0 反應) (0 負責人)Python (19,672 star) (7,339 fork)batch import
area: productionhelp wantednew feature

描述

Zulip currently outputs most of its logs to /var/log/zulip/*. While generally this is sufficient, our servers do not save any logs locally and instead we forward them to rsyslog and upload them to a central logging server.

Currently, we solved this problem by changing appropriate parameters for zulip in /etc/supervisor/ and /etc/supervisor/conf.d/ (which resulted in problems after upgrading to Zulip 3.0, see issue #15873 ) and in addition to that, read the log files in /var/log/zulip/ , forward them to rsyslog and then logrotate the folder every 10 minutes or so.

To mitigate the problems involved with this process, it would be easier and more appropriate if one could configure Zulip using the settings.py to deactivate the logging for certain modules as well as setting custom log directories or targets (like rsyslog).

貢獻者指南