Skip to content

Commit

Permalink
doc: add doc for daemon-specific log cli
Browse files Browse the repository at this point in the history
Add doc for the daemon-specific log file cli

Signed-off-by: Mark Stapp <[email protected]>
  • Loading branch information
Mark Stapp committed Jan 18, 2024
1 parent 31015c3 commit c7f7cf9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/user/basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ Basic Config Commands
deprecated ``log trap`` command) will be used. The ``no`` form of the command
disables logging to a file.

.. clicmd:: log daemon DAEMON file [FILENAME [LEVEL]]

Configure file logging for a single FRR daemon. If you want to log
into a file, please specify ``filename`` as in this example:

::

log daemon bgpd file /var/log/frr/bgpd.log informational

If the optional second argument specifying the logging level is not present,
the default logging level (typically debugging, but can be changed using the
deprecated ``log trap`` command) will be used. The ``no`` form of the command
disables logging to a file for a single FRR daemon.

.. clicmd:: log syslog [LEVEL]

Enable logging output to syslog. If the optional second argument specifying
Expand Down

0 comments on commit c7f7cf9

Please sign in to comment.