Skip to content

Commit

Permalink
Improve doc for logging local file
Browse files Browse the repository at this point in the history
  • Loading branch information
pierky committed Jun 25, 2021
1 parent 1b773d5 commit 521994c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/CONFIG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ These files must be present on the host running the route server.
The example above uses the ``client`` label, that is used to add an ``include`` statement into every neighbor configuration. Also, the base directory is set to ``/etc/``.

Logging configuration of the BGP daemon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ``logging`` label has a special meaning: when it's used in the ``--local-files-dir`` option, the default logging settings of the BGP speaker are omitted, and they are replaced by the *include* statement.

To determine the default logging configuration, please refer to the template files:
Expand All @@ -437,6 +440,8 @@ To determine the default logging configuration, please refer to the template fil

- `OpenBGPD <https://github.com/pierky/arouteserver/tree/master/templates/openbgpd>`__: see `header.j2 <https://github.com/pierky/arouteserver/blob/master/templates/openbgpd/header.j2>`__

As you can see in the next example, the default logging settings are omitted and replaced with the *include* statement for *logging.local*.

- Example, BIRD, ``logging`` being used:

.. code::
Expand All @@ -451,8 +456,6 @@ To determine the default logging configuration, please refer to the template fil
timeformat protocol iso long;
timeformat route iso long;
As you can see, the default logging settings are omitted and replaced with the *include* statement for *logging.local*.

.. _bird-hooks:

BIRD hooks
Expand Down

0 comments on commit 521994c

Please sign in to comment.