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

Commit

Permalink
Add information on logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Aug 9, 2015
1 parent 3de8460 commit 5ce913c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ or the ``rabbitmq.config`` file under the ``autocluster`` stanza.

General Settings
^^^^^^^^^^^^^^^^
The following settings apply to the general configuration of the plugin.
The following settings apply to the general configuration of the plugin:

**Backend Type**

Expand Down Expand Up @@ -287,6 +287,20 @@ list of RabbitMQ nodes in the cluster
| Default Value | ``30`` |
+----------------------+-------------------------+

Logging
^^^^^^^
autocluster will register itself as a configured logger with RabbitMQ if no log
configuration for it exists. To configure logging for the plugin, you add it to
the ``rabbit`` ``log_levels`` configuration like so:

.. code-block:: erlang
[{rabbit, [
{log_levels, [{autocluster, debug}, {connection, info}]}
]}].

Valid log levels are ``debug``, ``info``, ``warning``, and ``error``.

Example rabbitmq.config
^^^^^^^^^^^^^^^^^^^^^^^
.. code-block:: erlang
Expand Down

0 comments on commit 5ce913c

Please sign in to comment.