aboutsummaryrefslogtreecommitdiffstats
path: root/tests/logging/logging_vty_test.vty
diff options
context:
space:
mode:
Diffstat (limited to 'tests/logging/logging_vty_test.vty')
-rw-r--r--tests/logging/logging_vty_test.vty162
1 files changed, 135 insertions, 27 deletions
diff --git a/tests/logging/logging_vty_test.vty b/tests/logging/logging_vty_test.vty
index d77f8ce4..da09be76 100644
--- a/tests/logging/logging_vty_test.vty
+++ b/tests/logging/logging_vty_test.vty
@@ -29,7 +29,7 @@ logging_vty_test(config)# no log stderr
logging_vty_test(config)# exit
logging_vty_test# logging level force-all notice
-Logging was not enabled.
+% Logging was not enabled.
logging_vty_test# logging enable
logging_vty_test# logging filter all 1
@@ -48,12 +48,13 @@ logging_vty_test# list
logging color (0|1)
logging timestamp (0|1)
logging print extended-timestamp (0|1)
+ logging print thread-id (0|1)
logging print category (0|1)
logging print category-hex (0|1)
logging print level (0|1)
logging print file (0|1|basename) [last]
logging set-log-mask MASK
- logging level (aa|bb|ccc|dddd|eee|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf|lrspro) (debug|info|notice|error|fatal)
+ logging level (aa|bb|ccc|dddd|eee|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf|lrspro|lns|lbssgp|lnsdata|lnssignal|liuup|lpfcp|lcsn1|lio) (debug|info|notice|error|fatal)
logging level set-all (debug|info|notice|error|fatal)
logging level force-all (debug|info|notice|error|fatal)
no logging level force-all
@@ -69,6 +70,10 @@ logging_vty_test# logging ?
set-log-mask Set the logmask of this logging target
level Set the log level for a specified category
+logging_vty_test# logging timestamp ?
+ 0 Don't prefix each log message
+ 1 Prefix each log message with current timestamp
+
logging_vty_test# logging level ?
... ! all
aa Antropomorphic Armadillos (AA)
@@ -108,6 +113,98 @@ logging_vty_test# logging level set-all ?
error Log error messages and higher levels
fatal Log only fatal messages
+logging_vty_test# logging print ?
+ extended-timestamp Configure log message timestamping
+ thread-id Configure log message logging Thread ID
+ category Configure log message
+ category-hex Configure log message
+ level Configure log message
+ file Configure log message
+
+logging_vty_test# logging print extended-timestamp ?
+ 0 Don't prefix each log message
+ 1 Prefix each log message with current timestamp with YYYYMMDDhhmmssnnn
+
+logging_vty_test# logging print thread-id ?
+ 0 Don't prefix each log message
+ 1 Prefix each log message with current Thread ID
+
+logging_vty_test# logging print category ?
+ 0 Don't prefix each log message
+ 1 Prefix each log message with category/subsystem name
+
+logging_vty_test# logging print category-hex ?
+ 0 Don't prefix each log message
+ 1 Prefix each log message with category/subsystem nr in hex ('<000b>')
+
+logging_vty_test# logging print level ?
+ 0 Don't prefix each log message
+ 1 Prefix each log message with the log level name
+
+logging_vty_test# logging print file ?
+ 0 Don't prefix each log message
+ 1 Prefix each log message with the source file and line
+ basename Prefix each log message with the source file's basename (strip leading paths) and line
+
+logging_vty_test# logging print file basename ?
+ [last] Log source file info at the end of a log line. If omitted, log source file info just before the log text.
+
+logging_vty_test# configure terminal
+logging_vty_test(config)# log stderr
+logging_vty_test(config-log)# show running-config
+...
+log stderr
+... !timestamp
+ logging timestamp 0
+... !timestamp
+
+logging_vty_test(config-log)# logging timestamp 1
+logging_vty_test(config-log)# show running-config
+...
+log stderr
+... !timestamp
+ logging timestamp 1
+... !timestamp
+
+logging_vty_test(config-log)# ### with 'extended-timestamp 1', 'logging timestamp' is not shown
+logging_vty_test(config-log)# logging print extended-timestamp 1
+logging_vty_test(config-log)# show running-config
+...
+log stderr
+... !timestamp
+ logging print extended-timestamp 1
+... !timestamp
+
+logging_vty_test(config-log)# ### 'logging timestamp 0' effect not shown while 'extended-timestamp' == 1
+logging_vty_test(config-log)# logging timestamp 0
+logging_vty_test(config-log)# show running-config
+...
+log stderr
+... !timestamp
+ logging print extended-timestamp 1
+... !timestamp
+
+logging_vty_test(config-log)# ### 'logging timestamp 1' remains set upon 'extended-timestamp 0'
+logging_vty_test(config-log)# logging timestamp 1
+logging_vty_test(config-log)# logging print extended-timestamp 0
+logging_vty_test(config-log)# show running-config
+...
+log stderr
+... !timestamp
+ logging timestamp 1
+... !timestamp
+
+logging_vty_test(config-log)# logging timestamp 0
+logging_vty_test(config-log)# show running-config
+...
+log stderr
+... !timestamp
+ logging timestamp 0
+... !timestamp
+
+logging_vty_test(config-log)# exit
+logging_vty_test(config)# no log stderr
+logging_vty_test(config)# exit
logging_vty_test# log-sweep
DAA DEBUG Log message for DAA on level LOGL_DEBUG
@@ -471,37 +568,45 @@ DEEE FATAL Log message for DEEE on level LOGL_FATAL
logging_vty_test# list
...
- logp (aa|bb|ccc|dddd|eee|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf|lrspro) (debug|info|notice|error|fatal) .LOGMESSAGE
+ logp (aa|bb|ccc|dddd|eee|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf|lrspro|lns|lbssgp|lnsdata|lnssignal|liuup|lpfcp|lcsn1|lio) (debug|info|notice|error|fatal) .LOGMESSAGE
...
logging_vty_test# logp?
logp Print a message on all log outputs; useful for placing markers in test logs
logging_vty_test# logp ?
- aa Antropomorphic Armadillos (AA)
- bb Bidirectional Breadspread (BB)
- ccc Chaos Communication Congress (CCC)
- dddd Dehydrated Dribbling Duck Dunkers (DDDD)
- eee Exhaustive Entropy Extraction (EEE)
- lglobal Library-internal global log family
- llapd LAPD in libosmogsm
- linp A-bis Intput Subsystem
- lmux A-bis B-Subchannel TRAU Frame Multiplex
- lmi A-bis Input Driver for Signalling
- lmib A-bis Input Driver for B-Channels (voice)
- lsms Layer3 Short Message Service (SMS)
- lctrl Control Interface
- lgtp GPRS GTP library
- lstats Statistics messages and logging
- lgsup Generic Subscriber Update Protocol
- loap Osmocom Authentication Protocol
- lss7 libosmo-sigtran Signalling System 7
- lsccp libosmo-sigtran SCCP Implementation
- lsua libosmo-sigtran SCCP User Adaptation
- lm3ua libosmo-sigtran MTP3 User Adaptation
- lmgcp libosmo-mgcp Media Gateway Control Protocol
- ljibuf libosmo-netif Jitter Buffer
- lrspro Remote SIM protocol
+ aa Antropomorphic Armadillos (AA)
+ bb Bidirectional Breadspread (BB)
+ ccc Chaos Communication Congress (CCC)
+ dddd Dehydrated Dribbling Duck Dunkers (DDDD)
+ eee Exhaustive Entropy Extraction (EEE)
+ lglobal Library-internal global log family
+ llapd LAPD in libosmogsm
+ linp A-bis Intput Subsystem
+ lmux A-bis B-Subchannel TRAU Frame Multiplex
+ lmi A-bis Input Driver for Signalling
+ lmib A-bis Input Driver for B-Channels (voice)
+ lsms Layer3 Short Message Service (SMS)
+ lctrl Control Interface
+ lgtp GPRS GTP library
+ lstats Statistics messages and logging
+ lgsup Generic Subscriber Update Protocol
+ loap Osmocom Authentication Protocol
+ lss7 libosmo-sigtran Signalling System 7
+ lsccp libosmo-sigtran SCCP Implementation
+ lsua libosmo-sigtran SCCP User Adaptation
+ lm3ua libosmo-sigtran MTP3 User Adaptation
+ lmgcp libosmo-mgcp Media Gateway Control Protocol
+ ljibuf libosmo-netif Jitter Buffer
+ lrspro Remote SIM protocol
+ lns GPRS NS layer
+ lbssgp GPRS BSSGP layer
+ lnsdata GPRS NS layer data PDU
+ lnssignal GPRS NS layer signal PDU
+ liuup Iu UP layer
+ lpfcp libosmo-pfcp Packet Forwarding Control Protocol
+ lcsn1 libosmo-csn1 Concrete Syntax Notation 1 codec
+ lio libosmocore IO Subsystem
logging_vty_test# logp lglobal ?
debug Log debug messages and higher levels
@@ -521,3 +626,6 @@ DAA ERROR This is the log message
logging_vty_test# logp lglobal debug This log message is not echoed
logging_vty_test# logp lglobal notice This log message is echoed
DLGLOBAL NOTICE This log message is echoed
+
+logging_vty_test# logp lctrl notice This is a CTRL specific message
+DLCTRL NOTICE This is a CTRL specific message