Skip to content

Commit b76008d

Browse files
committed
Document logging settings - log rotation
Resolves #1974
1 parent c40c95e commit b76008d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/reference/reference_lua/log.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ Below is a list of all ``log`` functions.
130130

131131
* the current timestamp,
132132
* a module name,
133-
* 'E', 'W', 'I', 'V' or 'D' depending on ``log_level_function_name``, and
133+
* 'E', 'W', 'I', 'V' or 'D' depending on the called function, and
134134
* ``message``.
135135

136-
Output will not occur if ``log_level_function_name``
137-
is for a type greater than :ref:`log_level
138-
<cfg_logging-log_level>`.
136+
Note that the message will not be logged if the severity level corresponding to
137+
the called function is less than :ref:`log_level <cfg_logging-log_level>`.
139138

140139
.. _log-pid:
141140

@@ -148,5 +147,7 @@ Below is a list of all ``log`` functions.
148147
.. function:: rotate()
149148

150149
Rotates the log.
150+
For example, you need to call this function to continue logging after a log rotation program
151+
renames or moves a file with the latest logs.
151152

152153
:return: nil

0 commit comments

Comments
 (0)