Skip to content
This repository was archived by the owner on Feb 15, 2018. It is now read-only.

Commit 5ce913c

Browse files
committed
Add information on logging
1 parent 3de8460 commit 5ce913c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.rst

+15-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ or the ``rabbitmq.config`` file under the ``autocluster`` stanza.
2525

2626
General Settings
2727
^^^^^^^^^^^^^^^^
28-
The following settings apply to the general configuration of the plugin.
28+
The following settings apply to the general configuration of the plugin:
2929

3030
**Backend Type**
3131

@@ -287,6 +287,20 @@ list of RabbitMQ nodes in the cluster
287287
| Default Value | ``30`` |
288288
+----------------------+-------------------------+
289289

290+
Logging
291+
^^^^^^^
292+
autocluster will register itself as a configured logger with RabbitMQ if no log
293+
configuration for it exists. To configure logging for the plugin, you add it to
294+
the ``rabbit`` ``log_levels`` configuration like so:
295+
296+
.. code-block:: erlang
297+
298+
[{rabbit, [
299+
{log_levels, [{autocluster, debug}, {connection, info}]}
300+
]}].
301+
302+
Valid log levels are ``debug``, ``info``, ``warning``, and ``error``.
303+
290304
Example rabbitmq.config
291305
^^^^^^^^^^^^^^^^^^^^^^^
292306
.. code-block:: erlang

0 commit comments

Comments
 (0)