diff options
| author | Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr> | 2016-01-15 17:10:52 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr> | 2016-01-15 17:10:52 +0100 |
| commit | 2398554cfb5a1cd942ad91dfa8a4e2ac88f38647 (patch) | |
| tree | dd5aa3dd9ea2a6f1b95d715029939cce0e00bb5c /docs/rabbitmqctl.1.xml | |
| parent | 067882313ce98e5509343761d3d239aa415d92fd (diff) | |
| parent | 07d27cbe98e7228c4daefb734b31cfc7ed366f4e (diff) | |
| download | rabbitmq-server-git-2398554cfb5a1cd942ad91dfa8a4e2ac88f38647.tar.gz | |
Merge pull request #548 from binarin/rabbitmq-server-lager-rotate-logs
Update calls to 'rabbitmqctl rotate_logs'
Diffstat (limited to 'docs/rabbitmqctl.1.xml')
| -rw-r--r-- | docs/rabbitmqctl.1.xml | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/docs/rabbitmqctl.1.xml b/docs/rabbitmqctl.1.xml index c9b699d634..a4ece7435e 100644 --- a/docs/rabbitmqctl.1.xml +++ b/docs/rabbitmqctl.1.xml @@ -261,32 +261,27 @@ </varlistentry> <varlistentry> - <term><cmdsynopsis><command>rotate_logs</command> <arg choice="req"><replaceable>suffix</replaceable></arg></cmdsynopsis></term> + <term><cmdsynopsis><command>rotate_logs</command></cmdsynopsis></term> <listitem> <para> - Instruct the RabbitMQ node to rotate the log files. + Instruct the RabbitMQ node to perform internal log rotation. </para> <para> - The RabbitMQ broker appends the contents of its log - files to files with names composed of the original name - and the suffix, and then resumes logging to freshly - created files at the original location. I.e. effectively - the current log contents are moved to the end of the - suffixed files. + Log rotation is performed according to lager settings + specified in configuration file. </para> <para> - When the target files do not exist they are created. When - no <option>suffix</option> is specified, no rotation takes - place - log files are just re-opened. + Note that there is no need to call this command in case of + external log rotation (e.g. from logrotate), because lager + detects renames and automatically reopens log files. </para> <para role="example-prefix">For example:</para> - <screen role="example">rabbitmqctl rotate_logs .1</screen> + <screen role="example">rabbitmqctl rotate_logs</screen> <para role="example"> - This command instructs the RabbitMQ node to append the contents - of the log files to files with names consisting of the original logs' - names and ".1" suffix, e.g. rabbit@mymachine.log.1 and - rabbit@mymachine-sasl.log.1. Finally, logging resumes to - fresh files at the old locations. + This command starts internal log rotation + process. Rotation is performed asynchronously, so there is + no guarantee that it will be completed when this command + returns. </para> </listitem> </varlistentry> |
