From 7afec8975cb2c8fa1c6725176f52e100d396d1c4 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 27 Jun 2017 16:42:33 +0200 Subject: Add new logger which plugins can use. --- src/mailman/commands/docs/conf.rst | 1 + src/mailman/config/schema.cfg | 4 ++++ src/mailman/rest/tests/test_systemconf.py | 1 + 3 files changed, 6 insertions(+) diff --git a/src/mailman/commands/docs/conf.rst b/src/mailman/commands/docs/conf.rst index 1a6a4679d..9981b71ed 100644 --- a/src/mailman/commands/docs/conf.rst +++ b/src/mailman/commands/docs/conf.rst @@ -45,6 +45,7 @@ key, along with the names of the corresponding sections. [logging.http] path: mailman.log [logging.locks] path: mailman.log [logging.mischief] path: mailman.log + [logging.plugin] path: plugin.log [logging.root] path: mailman.log [logging.runner] path: mailman.log [logging.smtp] path: smtp.log diff --git a/src/mailman/config/schema.cfg b/src/mailman/config/schema.cfg index cae95a07f..a55c37ff4 100644 --- a/src/mailman/config/schema.cfg +++ b/src/mailman/config/schema.cfg @@ -276,6 +276,7 @@ debug: no # - http -- Internal wsgi-based web interface # - locks -- Lock state changes # - mischief -- Various types of hostile activity +# - plugin -- Plugin logs # - runner -- Runner process start/stops # - smtp -- Successful SMTP activity # - smtp-failure -- Unsuccessful SMTP activity @@ -313,6 +314,9 @@ level: info [logging.mischief] +[logging.plugin] +path: plugin.log + [logging.runner] [logging.smtp] diff --git a/src/mailman/rest/tests/test_systemconf.py b/src/mailman/rest/tests/test_systemconf.py index 42802068c..fe5d951a8 100644 --- a/src/mailman/rest/tests/test_systemconf.py +++ b/src/mailman/rest/tests/test_systemconf.py @@ -166,6 +166,7 @@ class TestSystemConfiguration(unittest.TestCase): 'logging.http', 'logging.locks', 'logging.mischief', + 'logging.plugin', 'logging.root', 'logging.runner', 'logging.smtp', -- cgit v1.2.3-70-g09d2