mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-20 18:27:23 +01:00
Initial commit of a log capture and reporting feature
This adds a new section to the admin panel called "Activity", that supplies charts, graphs and details about messages entering and leaving the host. A new daemon captures details of system mail activity by monitoring the /var/log/mail.log file, summarizing it into a sqllite database that's kept in user-data.
This commit is contained in:
@@ -696,6 +696,16 @@ def log_failed_login(request):
|
||||
|
||||
# APP
|
||||
|
||||
from daemon_logger import add_python_logging
|
||||
add_python_logging(app)
|
||||
|
||||
from daemon_ui_common import add_ui_common
|
||||
add_ui_common(app)
|
||||
|
||||
from daemon_reports import add_reports
|
||||
add_reports(app, env, authorized_personnel_only)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if "DEBUG" in os.environ:
|
||||
# Turn on Flask debugging.
|
||||
|
||||
Reference in New Issue
Block a user