diff options
| author | Thibault "bui" Koechlin | 2019-08-31 15:32:36 +0200 |
|---|---|---|
| committer | jvoisin | 2019-08-31 13:32:36 +0000 |
| commit | 504f02992ace82a5520bc0ca43d9562c077a06e4 (patch) | |
| tree | 94934cf269abe7a8dbdf0a8bdb4ddb1d51cb4f30 /doc/source | |
| parent | f7e25b29c1cd5273675dbb3d6883c40377d8315d (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')
| -rw-r--r-- | doc/source/config.rst | 18 |
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 | ||
| 84 | log_media | ||
| 85 | ^^^^^^^^^ | ||
| 86 | |||
| 87 | This configuration variable allows to specify how logs should be written, | ||
| 88 | either via ``php`` or ``syslog``. | ||
| 89 | |||
| 90 | :: | ||
| 91 | |||
| 92 | sp.log_media("php"); | ||
| 93 | sp.log_media("syslog"); | ||
| 94 | |||
| 95 | The default value for ``sp.log_media`` is ``php``, to respect the `principle of | ||
| 96 | least astonishment | ||
| 97 | <https://en.wikipedia.org/wiki/Principle_of_least_astonishment>`__. But since | ||
| 98 | it's `possible to modify php's logging system via php | ||
| 99 | <https://www.php.net/manual/en/errorfunc.configuration.php>`__, it's | ||
| 100 | heavily recommended to use the ``syslog`` option instead. | ||
| 101 | |||
| 84 | 102 | ||
| 85 | Bugclass-killer features | 103 | Bugclass-killer features |
| 86 | ------------------------ | 104 | ------------------------ |
