summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMark Stapp <mjs@labn.net>2024-01-18 14:30:01 +0100
committerMark Stapp <mjs@labn.net>2024-01-18 14:30:01 +0100
commitc7f7cf96101dc958cff10d37bbed6635dcb25caf (patch)
tree5000b79e074b914ddc5a6ef91f8e4e26072c6e60 /doc
parentlib,vtysh: add per-daemon log file config (diff)
downloadfrr-c7f7cf96101dc958cff10d37bbed6635dcb25caf.tar.xz
frr-c7f7cf96101dc958cff10d37bbed6635dcb25caf.zip
doc: add doc for daemon-specific log cli
Add doc for the daemon-specific log file cli Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/user/basic.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/user/basic.rst b/doc/user/basic.rst
index 24978b2f7..8d3db7065 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