]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: add doc for daemon-specific log cli 15168/head
authorMark Stapp <mjs@labn.net>
Thu, 18 Jan 2024 13:30:01 +0000 (08:30 -0500)
committerMark Stapp <mjs@labn.net>
Thu, 18 Jan 2024 13:30:01 +0000 (08:30 -0500)
Add doc for the daemon-specific log file cli

Signed-off-by: Mark Stapp <mjs@labn.net>
doc/user/basic.rst

index 24978b2f79a7ab28e1c05ab57dc4f2e2a280a93f..8d3db7065fa776079fbb1f31da53ed0128338bbb 100644 (file)
@@ -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