@@ -1909,8 +1909,8 @@ To handle logging in your application, use the :ref:`log module <log-module>`.
1909
1909
1910
1910
* ``stderr ``: write logs to the standard error stream.
1911
1911
* ``file ``: write logs to a file (see :ref: `log.file <configuration_reference_log_file >`).
1912
- * ``pipe ``: start a program and write logs to it (see :ref: `log.pipe <configuration_reference_log_pipe >`).
1913
- * ``syslog ``: write audit logs to a system logger (see :ref: `log.syslog.* <configuration_reference_log_syslog >`).
1912
+ * ``pipe ``: start a program and write logs to its standard input (see :ref: `log.pipe <configuration_reference_log_pipe >`).
1913
+ * ``syslog ``: write logs to a system logger (see :ref: `log.syslog.* <configuration_reference_log_syslog >`).
1914
1914
1915
1915
|
1916
1916
| Type: string
@@ -1924,6 +1924,7 @@ To handle logging in your application, use the :ref:`log module <log-module>`.
1924
1924
1925
1925
Specify a file for logs destination.
1926
1926
To write logs to a file, you need to set :ref: `log.to <configuration_reference_log_to >` to ``file ``.
1927
+ Otherwise, ``log.file `` is ignored.
1927
1928
1928
1929
**Example **
1929
1930
@@ -2147,8 +2148,8 @@ To handle logging in your application, use the :ref:`log module <log-module>`.
2147
2148
2148
2149
.. confval :: log.pipe
2149
2150
2150
- Specify a pipe for logs destination .
2151
- To write logs to a pipe , you need to set :ref: `log.to <configuration_reference_log_to >` to ``pipe ``.
2151
+ Start a program and write logs to its standard input (`` stdin ``) .
2152
+ To send logs to a program's standard input , you need to set :ref: `log.to <configuration_reference_log_to >` to ``pipe ``.
2152
2153
2153
2154
**Example **
2154
2155
@@ -2203,7 +2204,10 @@ log.syslog.*
2203
2204
.. confval :: log.syslog.server
2204
2205
2205
2206
Set a location of a syslog server.
2206
- This option accepts an IPv4 address or Unix socket path starting with ``unix: ``.
2207
+ This option accepts one of the following values:
2208
+
2209
+ * An IPv4 address. Example: ``127.0.0.1:514 ``.
2210
+ * A Unix socket path starting with ``unix: ``. Examples: ``unix:/dev/log `` on Linux or ``unix:/var/run/syslog `` on macOS.
2207
2211
2208
2212
To write logs to syslog, you need to set :ref: `log.to <configuration_reference_log_to >` to ``syslog ``.
2209
2213
0 commit comments