@@ -27,34 +27,35 @@ application.
27
27
28
28
By setting ``log_level ``, you can enable logging of all events with severities above
29
29
or equal to the given level. Tarantool prints logs to the standard
30
- error stream by default, but this can be changed with the
30
+ error stream by default. This can be changed with the
31
31
:ref: `log <cfg_logging-log >` configuration parameter.
32
32
33
33
| Type: integer
34
34
| Default: 5
35
35
| Environment variable: TT_LOG_LEVEL
36
36
| Dynamic: **yes**
37
37
38
- Warning: prior to Tarantool 1.7.5 there were only six levels and ``DEBUG `` was
39
- level 6. Starting with Tarantool 1.7.5, ``VERBOSE `` is level 6 and ``DEBUG `` is level 7.
40
- ``VERBOSE `` is a new level for monitoring repetitive events which would cause
41
- too much log writing if ``INFO `` were used instead.
38
+ .. note ::
39
+ Prior to Tarantool 1.7.5 there were only six levels and ``DEBUG `` was
40
+ level 6. Starting with Tarantool 1.7.5, ``VERBOSE `` is level 6 and ``DEBUG `` is level 7.
41
+ ``VERBOSE `` is a new level for monitoring repetitive events which would cause
42
+ too much log writing if ``INFO `` were used instead.
42
43
43
44
.. _cfg_logging-log :
44
45
45
46
.. confval :: log
46
47
47
48
Since version 1.7.4.
48
49
By default, Tarantool sends the log to the standard error stream
49
- (``stderr ``). If ``log `` is specified, Tarantool can send the log to a ...
50
+ (``stderr ``). If ``log `` is specified, Tarantool can send the log to a:
50
51
51
- * file;
52
+ * file
52
53
53
- * pipe;
54
+ * pipe
54
55
55
- * system logger.
56
+ * system logger
56
57
57
- The example below shows how to send logs to the ``tarantool.log `` file:
58
+ Example 1: sending the log to the ``tarantool.log `` file.
58
59
59
60
.. code-block :: lua
60
61
@@ -66,7 +67,7 @@ application.
66
67
directory. If the ``log `` string has no prefix or has the prefix "file:",
67
68
then the string is interpreted as a file path.
68
69
69
- This example shows how to send the log to a pipe:
70
+ Example 2: sending the log to a pipe.
70
71
71
72
.. code-block :: lua
72
73
@@ -80,7 +81,7 @@ application.
80
81
then the string is interpreted as a Unix
81
82
`pipeline <https://en.wikipedia.org/wiki/Pipeline_%28Unix%29>`_.
82
83
83
- The example below shows how to send the log to syslog:
84
+ Example 3: sending the log to syslog.
84
85
85
86
.. code-block :: lua
86
87
@@ -96,8 +97,8 @@ application.
96
97
interpreted as a message for the
97
98
`syslogd <https://linux.die.net/man/8/syslogd >`_ program, which normally
98
99
is running in the background on any Unix-like platform.
99
- The setting can be ' syslog:', ' syslog:facility=...', ' syslog:identity=...' ,
100
- ' syslog:server=...' , or a combination.
100
+ The setting can be `` syslog: ``, `` syslog:facility=... ``, `` syslog:identity=... `` ,
101
+ `` syslog:server=... `` , or a combination.
101
102
102
103
* The ``syslog:identity `` setting is an arbitrary string, which is placed at
103
104
the beginning of all messages. The default value is "tarantool".
0 commit comments