summaryrefslogtreecommitdiff
path: root/doc/source/config.rst
diff options
context:
space:
mode:
authorThibault "bui" Koechlin2019-08-31 15:32:36 +0200
committerjvoisin2019-08-31 13:32:36 +0000
commit504f02992ace82a5520bc0ca43d9562c077a06e4 (patch)
tree94934cf269abe7a8dbdf0a8bdb4ddb1d51cb4f30 /doc/source/config.rst
parentf7e25b29c1cd5273675dbb3d6883c40377d8315d (diff)
Support direct syslog logging
Add the possibility to log directly into the syslog, instead of using php's log system.
Diffstat (limited to 'doc/source/config.rst')
-rw-r--r--doc/source/config.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst
index 89e063f..4be8db7 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -81,6 +81,24 @@ This configuration variable contains parameters that are used by multiple featur
81- ``cookie_env_var``: A environment variable used as part of cookies encryption. 81- ``cookie_env_var``: A environment variable used as part of cookies encryption.
82 See the :ref:`relevant documentation <config_cookie-encryption>` 82 See the :ref:`relevant documentation <config_cookie-encryption>`
83 83
84log_media
85^^^^^^^^^
86
87This configuration variable allows to specify how logs should be written,
88either via ``php`` or ``syslog``.
89
90::
91
92 sp.log_media("php");
93 sp.log_media("syslog");
94
95The default value for ``sp.log_media`` is ``php``, to respect the `principle of
96least astonishment
97<https://en.wikipedia.org/wiki/Principle_of_least_astonishment>`__. But since
98it's `possible to modify php's logging system via php
99<https://www.php.net/manual/en/errorfunc.configuration.php>`__, it's
100heavily recommended to use the ``syslog`` option instead.
101
84 102
85Bugclass-killer features 103Bugclass-killer features
86------------------------ 104------------------------