13
13
Tarantool provides a set of :ref: `options <cfg_logging >` used to configure logging
14
14
in various ways: you can set a level of logging, specify where to send the log's output,
15
15
configure a log format, and so on.
16
- The ``log `` module allows you to configure logging in you application and
16
+ The ``log `` module allows you to configure logging in your application and
17
17
provides additional capabilities, for example, logging custom messages and
18
18
rotating log files.
19
19
@@ -31,24 +31,24 @@ Below is a list of all ``log`` functions.
31
31
+--------------------------------------+---------------------------------+
32
32
| Name | Use |
33
33
+======================================+=================================+
34
- | :ref: `log.cfg({}) | Configure a logger |
34
+ | :ref: `log.cfg({}) | Configures a logger |
35
35
| <log-cfg>` | |
36
36
+--------------------------------------+---------------------------------+
37
37
| :ref: `log.error() | |
38
38
| <log-ug_message>` |br | | |
39
39
| :ref: `log.warn() | |
40
40
| <log-ug_message>` |br | | |
41
- | :ref: `log.info() | Log a message with the |
41
+ | :ref: `log.info() | Logs a message with the |
42
42
| <log-ug_message>` |br | | specified level |
43
43
| :ref: `log.verbose() | |
44
44
| <log-ug_message>` |br | | |
45
45
| :ref: `log.debug() | |
46
46
| <log-ug_message>` | |
47
47
+--------------------------------------+---------------------------------+
48
- | :ref: `log.logger_pid () | Get the PID of a logger |
49
- | <log-logger_pid>` | |
48
+ | :ref: `log.pid () | Gets the PID of a logger |
49
+ | <log-pid>` | |
50
50
+--------------------------------------+---------------------------------+
51
- | :ref: `log.rotate() | Rotate a log file |
51
+ | :ref: `log.rotate() | Rotates a log file |
52
52
| <log-rotate>` | |
53
53
+--------------------------------------+---------------------------------+
54
54
@@ -63,18 +63,19 @@ Below is a list of all ``log`` functions.
63
63
64
64
See also: :ref: `log_level <cfg_logging-log_level >`.
65
65
66
- * ``log ``: Specifies where to to send the log's output, for example,
66
+ * ``log ``: Specifies where to send the log's output, for example,
67
67
to a file, pipe, or system logger.
68
68
69
- See also: :ref: `log <cfg_logging-log >`
69
+ See also: :ref: `log <cfg_logging-log >`.
70
70
71
71
* ``nonblock ``: If **true **, Tarantool does not block during logging when the system
72
72
is not ready for writing, and drops the message instead.
73
73
74
- See also: :ref: `log_nonblock <cfg_logging-log_nonblock >`
74
+ See also: :ref: `log_nonblock <cfg_logging-log_nonblock >`.
75
75
76
76
* ``format ``: Specifies the log format: 'plain' or 'json'.
77
- See also: :ref: `log_format <cfg_logging-log_format >`
77
+
78
+ See also: :ref: `log_format <cfg_logging-log_format >`.
78
79
79
80
The example below shows how to set the log level to 'debug' and how to send the resulting log
80
81
to the 'tarantool.log' file:
@@ -137,11 +138,11 @@ Below is a list of all ``log`` functions.
137
138
is for a type greater than :ref: `log_level
138
139
<cfg_logging-log_level>`.
139
140
140
- .. _log-logger_pid :
141
+ .. _log-pid :
141
142
142
- .. function :: logger_pid ()
143
+ .. function :: pid ()
143
144
144
- :return: Returns a PID of a logger.
145
+ :return: A PID of a logger.
145
146
146
147
.. _log-rotate :
147
148
0 commit comments