From c7f7cf96101dc958cff10d37bbed6635dcb25caf Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 18 Jan 2024 08:30:01 -0500 Subject: [PATCH] doc: add doc for daemon-specific log cli Add doc for the daemon-specific log file cli Signed-off-by: Mark Stapp --- doc/user/basic.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/user/basic.rst b/doc/user/basic.rst index 24978b2f79..8d3db7065f 100644 --- a/doc/user/basic.rst +++ b/doc/user/basic.rst @@ -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 -- 2.39.5