summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-06-29 16:49:43 +0200
committerChristian Breunig <christian@breunig.cc>2026-07-01 21:01:16 +0200
commitab149e4d09925013a6b440af583addf58e6602d4 (patch)
tree8ffccf193f345c6f9311711b788c63f152f75c8c
parent1403abb248c63fd1e7a9dc01ca447f86c8173664 (diff)
downloadvyos-1x-ab149e4d09925013a6b440af583addf58e6602d4.tar.gz
vyos-1x-ab149e4d09925013a6b440af583addf58e6602d4.zip
op-mode: T9009: add "show log priority <level>" command
-rwxr-xr-xop-mode-definitions/show-log.xml.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in
index 22c60706d..f551e270f 100755
--- a/op-mode-definitions/show-log.xml.in
+++ b/op-mode-definitions/show-log.xml.in
@@ -7,7 +7,7 @@
<children>
<node name="log">
<properties>
- <help>Show contents of current master logging buffer</help>
+ <help>Show contents of logging buffer</help>
</properties>
<command>journalctl --no-hostname --boot</command>
<children>
@@ -771,6 +771,15 @@
</properties>
<command>journalctl --no-hostname --boot --unit accel-ppp@pppoe.service</command>
</leafNode>
+ <tagNode name="priority">
+ <properties>
+ <help>Show contents of logging buffer and filter messages by minimum priority level (includes all higher severities)</help>
+ <completionHelp>
+ <list>emerg alert crit err warning notice info debug</list>
+ </completionHelp>
+ </properties>
+ <command>SYSTEMD_COLORS=false journalctl --no-hostname --boot --priority=$4</command>
+ </tagNode>
<node name="protocol">
<properties>
<help>Show log for Routing Protocol</help>