diff options
| author | Christian Poessinger <christian@poessinger.com> | 2021-04-04 10:01:20 +0200 |
|---|---|---|
| committer | Christian Poessinger <christian@poessinger.com> | 2021-04-04 10:01:20 +0200 |
| commit | 6330708f7ad50e56b16e1c7bc671eaddcd758bdb (patch) | |
| tree | e145cf7275a198c9aa49ac5124546b73fc80cb97 | |
| parent | 52323dcd620ef1b6d716787c9c4729b9ae9ee7e0 (diff) | |
| download | vyos-1x-6330708f7ad50e56b16e1c7bc671eaddcd758bdb.tar.gz vyos-1x-6330708f7ad50e56b16e1c7bc671eaddcd758bdb.zip | |
T3457: output the "monitor log" command in a colorful way
Add a new CLI command "monitor log colored" to run the log file monitoring
through grc (https://github.com/garabik/grc).
| -rw-r--r-- | debian/control | 1 | ||||
| -rw-r--r-- | op-mode-definitions/monitor-log.xml.in | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/debian/control b/debian/control index c74eaa459..4351bf3d9 100644 --- a/debian/control +++ b/debian/control @@ -49,6 +49,7 @@ Depends: file, frr, frr-pythontools, + grc, hostapd (>= 0.6.8), hvinfo, igmpproxy, diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 99efe5306..352c84ff1 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -7,6 +7,14 @@ <help>Monitor last lines of messages file</help> </properties> <command>tail --follow=name /var/log/messages</command> + <children> + <node name="colored"> + <properties> + <help>Output log in a colored fashion</help> + </properties> + <command>grc tail --follow=name /var/log/messages</command> + </node> + </children> </node> </children> </node> |
