Neels Hofmeyr | 3a9ff11 | 2018-09-10 17:18:28 +0200 | [diff] [blame] | 1 | logging_vty_test> enable |
| 2 | |
Neels Hofmeyr | 3a9ff11 | 2018-09-10 17:18:28 +0200 | [diff] [blame] | 3 | logging_vty_test# show running-config |
| 4 | ... |
| 5 | log stderr |
Neels Hofmeyr | 7e0686c | 2018-09-10 20:58:52 +0200 | [diff] [blame^] | 6 | ... !logging level all |
Neels Hofmeyr | 3a9ff11 | 2018-09-10 17:18:28 +0200 | [diff] [blame] | 7 | logging level aa debug |
| 8 | logging level bb info |
| 9 | logging level ccc notice |
| 10 | logging level dddd error |
| 11 | logging level eee fatal |
| 12 | ... |
| 13 | |
| 14 | logging_vty_test# configure terminal |
| 15 | logging_vty_test(config)# no log stderr |
| 16 | logging_vty_test(config)# exit |
| 17 | |
| 18 | logging_vty_test# logging enable |
| 19 | logging_vty_test# logging filter all 1 |
| 20 | logging_vty_test# logging print category-hex 0 |
| 21 | logging_vty_test# logging print category 1 |
| 22 | logging_vty_test# logging print level 1 |
| 23 | logging_vty_test# logging color 0 |
| 24 | logging_vty_test# logging print file 0 |
| 25 | |
| 26 | |
| 27 | logging_vty_test# list |
| 28 | ... !logging |
| 29 | logging enable |
| 30 | logging disable |
| 31 | logging filter all (0|1) |
| 32 | logging color (0|1) |
| 33 | logging timestamp (0|1) |
| 34 | logging print extended-timestamp (0|1) |
| 35 | logging print category (0|1) |
| 36 | logging print category-hex (0|1) |
| 37 | logging print level (0|1) |
| 38 | logging print file (0|1|basename) [last] |
| 39 | logging set-log-mask MASK |
Neels Hofmeyr | 7e0686c | 2018-09-10 20:58:52 +0200 | [diff] [blame^] | 40 | logging level (all|aa|bb|ccc|dddd|eee|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf) (debug|info|notice|error|fatal) |
Neels Hofmeyr | 3a9ff11 | 2018-09-10 17:18:28 +0200 | [diff] [blame] | 41 | show logging vty |
| 42 | ... !logging |
| 43 | |
| 44 | logging_vty_test# logging ? |
| 45 | enable Enables logging to this vty |
| 46 | disable Disables logging to this vty |
| 47 | filter Filter log messages |
| 48 | color Configure color-printing for log messages |
| 49 | timestamp Configure log message timestamping |
| 50 | print Log output settings |
| 51 | set-log-mask Set the logmask of this logging target |
| 52 | level Set the log level for a specified category |
| 53 | |
| 54 | logging_vty_test# logging level ? |
| 55 | all Global setting for all subsystems |
| 56 | aa Antropomorphic Armadillos (AA) |
| 57 | bb Bidirectional Breadspread (BB) |
| 58 | ccc Chaos Communication Congress (CCC) |
| 59 | dddd Dehydrated Dribbling Duck Dunkers (DDDD) |
| 60 | eee Exhaustive Entropy Extraction (EEE) |
| 61 | lglobal Library-internal global log family |
| 62 | ... |
| 63 | |
| 64 | logging_vty_test# logging level aa ? |
Neels Hofmeyr | 7e0686c | 2018-09-10 20:58:52 +0200 | [diff] [blame^] | 65 | debug Log debug messages and higher levels |
| 66 | info Log informational messages and higher levels |
| 67 | notice Log noticeable messages and higher levels |
| 68 | error Log error messages and higher levels |
| 69 | fatal Log only fatal messages |
Neels Hofmeyr | 3a9ff11 | 2018-09-10 17:18:28 +0200 | [diff] [blame] | 70 | |
| 71 | logging_vty_test# logging level all ? |
Neels Hofmeyr | 7e0686c | 2018-09-10 20:58:52 +0200 | [diff] [blame^] | 72 | debug Log debug messages and higher levels |
| 73 | info Log informational messages and higher levels |
| 74 | notice Log noticeable messages and higher levels |
| 75 | error Log error messages and higher levels |
| 76 | fatal Log only fatal messages |
Neels Hofmeyr | 3a9ff11 | 2018-09-10 17:18:28 +0200 | [diff] [blame] | 77 | |
| 78 | |
| 79 | logging_vty_test# log-sweep |
| 80 | DAA DEBUG Log message for DAA on level LOGL_DEBUG |
| 81 | DAA INFO Log message for DAA on level LOGL_INFO |
| 82 | DAA NOTICE Log message for DAA on level LOGL_NOTICE |
| 83 | DAA ERROR Log message for DAA on level LOGL_ERROR |
| 84 | DAA FATAL Log message for DAA on level LOGL_FATAL |
| 85 | DBB INFO Log message for DBB on level LOGL_INFO |
| 86 | DBB NOTICE Log message for DBB on level LOGL_NOTICE |
| 87 | DBB ERROR Log message for DBB on level LOGL_ERROR |
| 88 | DBB FATAL Log message for DBB on level LOGL_FATAL |
| 89 | DCCC NOTICE Log message for DCCC on level LOGL_NOTICE |
| 90 | DCCC ERROR Log message for DCCC on level LOGL_ERROR |
| 91 | DCCC FATAL Log message for DCCC on level LOGL_FATAL |
| 92 | DDDDD ERROR Log message for DDDDD on level LOGL_ERROR |
| 93 | DDDDD FATAL Log message for DDDDD on level LOGL_FATAL |
| 94 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 95 | |
| 96 | logging_vty_test# logging level all fatal |
| 97 | logging_vty_test# log-sweep |
| 98 | DAA FATAL Log message for DAA on level LOGL_FATAL |
| 99 | DBB FATAL Log message for DBB on level LOGL_FATAL |
| 100 | DCCC FATAL Log message for DCCC on level LOGL_FATAL |
| 101 | DDDDD FATAL Log message for DDDDD on level LOGL_FATAL |
| 102 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 103 | |
| 104 | logging_vty_test# logging level all error |
| 105 | logging_vty_test# log-sweep |
| 106 | DAA ERROR Log message for DAA on level LOGL_ERROR |
| 107 | DAA FATAL Log message for DAA on level LOGL_FATAL |
| 108 | DBB ERROR Log message for DBB on level LOGL_ERROR |
| 109 | DBB FATAL Log message for DBB on level LOGL_FATAL |
| 110 | DCCC ERROR Log message for DCCC on level LOGL_ERROR |
| 111 | DCCC FATAL Log message for DCCC on level LOGL_FATAL |
| 112 | DDDDD ERROR Log message for DDDDD on level LOGL_ERROR |
| 113 | DDDDD FATAL Log message for DDDDD on level LOGL_FATAL |
| 114 | DEEE ERROR Log message for DEEE on level LOGL_ERROR |
| 115 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 116 | |
| 117 | logging_vty_test# logging level all notice |
| 118 | logging_vty_test# log-sweep |
| 119 | DAA NOTICE Log message for DAA on level LOGL_NOTICE |
| 120 | DAA ERROR Log message for DAA on level LOGL_ERROR |
| 121 | DAA FATAL Log message for DAA on level LOGL_FATAL |
| 122 | DBB NOTICE Log message for DBB on level LOGL_NOTICE |
| 123 | DBB ERROR Log message for DBB on level LOGL_ERROR |
| 124 | DBB FATAL Log message for DBB on level LOGL_FATAL |
| 125 | DCCC NOTICE Log message for DCCC on level LOGL_NOTICE |
| 126 | DCCC ERROR Log message for DCCC on level LOGL_ERROR |
| 127 | DCCC FATAL Log message for DCCC on level LOGL_FATAL |
| 128 | DDDDD NOTICE Log message for DDDDD on level LOGL_NOTICE |
| 129 | DDDDD ERROR Log message for DDDDD on level LOGL_ERROR |
| 130 | DDDDD FATAL Log message for DDDDD on level LOGL_FATAL |
| 131 | DEEE NOTICE Log message for DEEE on level LOGL_NOTICE |
| 132 | DEEE ERROR Log message for DEEE on level LOGL_ERROR |
| 133 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 134 | |
| 135 | logging_vty_test# logging level all debug |
| 136 | logging_vty_test# log-sweep |
| 137 | DAA DEBUG Log message for DAA on level LOGL_DEBUG |
| 138 | DAA INFO Log message for DAA on level LOGL_INFO |
| 139 | DAA NOTICE Log message for DAA on level LOGL_NOTICE |
| 140 | DAA ERROR Log message for DAA on level LOGL_ERROR |
| 141 | DAA FATAL Log message for DAA on level LOGL_FATAL |
| 142 | DBB DEBUG Log message for DBB on level LOGL_DEBUG |
| 143 | DBB INFO Log message for DBB on level LOGL_INFO |
| 144 | DBB NOTICE Log message for DBB on level LOGL_NOTICE |
| 145 | DBB ERROR Log message for DBB on level LOGL_ERROR |
| 146 | DBB FATAL Log message for DBB on level LOGL_FATAL |
| 147 | DCCC DEBUG Log message for DCCC on level LOGL_DEBUG |
| 148 | DCCC INFO Log message for DCCC on level LOGL_INFO |
| 149 | DCCC NOTICE Log message for DCCC on level LOGL_NOTICE |
| 150 | DCCC ERROR Log message for DCCC on level LOGL_ERROR |
| 151 | DCCC FATAL Log message for DCCC on level LOGL_FATAL |
| 152 | DDDDD DEBUG Log message for DDDDD on level LOGL_DEBUG |
| 153 | DDDDD INFO Log message for DDDDD on level LOGL_INFO |
| 154 | DDDDD NOTICE Log message for DDDDD on level LOGL_NOTICE |
| 155 | DDDDD ERROR Log message for DDDDD on level LOGL_ERROR |
| 156 | DDDDD FATAL Log message for DDDDD on level LOGL_FATAL |
| 157 | DEEE DEBUG Log message for DEEE on level LOGL_DEBUG |
| 158 | DEEE INFO Log message for DEEE on level LOGL_INFO |
| 159 | DEEE NOTICE Log message for DEEE on level LOGL_NOTICE |
| 160 | DEEE ERROR Log message for DEEE on level LOGL_ERROR |
| 161 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 162 | |
| 163 | logging_vty_test# ! 'logging level all' overrides everything, be it stronger or weaker |
| 164 | logging_vty_test# logging level all notice |
| 165 | logging_vty_test# logging level eee debug |
| 166 | logging_vty_test# log-sweep eee |
| 167 | DEEE NOTICE Log message for DEEE on level LOGL_NOTICE |
| 168 | DEEE ERROR Log message for DEEE on level LOGL_ERROR |
| 169 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 170 | |
| 171 | logging_vty_test# logging level all notice |
| 172 | logging_vty_test# logging level eee fatal |
| 173 | logging_vty_test# log-sweep eee |
| 174 | DEEE NOTICE Log message for DEEE on level LOGL_NOTICE |
| 175 | DEEE ERROR Log message for DEEE on level LOGL_ERROR |
| 176 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 177 | |
| 178 | logging_vty_test# ! Old 'logging level all everything' has no effect |
| 179 | logging_vty_test# logging level all everything |
Neels Hofmeyr | 7e0686c | 2018-09-10 20:58:52 +0200 | [diff] [blame^] | 180 | % Ignoring deprecated logging level 'everything' keyword |
Neels Hofmeyr | 3a9ff11 | 2018-09-10 17:18:28 +0200 | [diff] [blame] | 181 | logging_vty_test# log-sweep eee |
| 182 | DEEE NOTICE Log message for DEEE on level LOGL_NOTICE |
| 183 | DEEE ERROR Log message for DEEE on level LOGL_ERROR |
| 184 | DEEE FATAL Log message for DEEE on level LOGL_FATAL |
| 185 | |
| 186 | logging_vty_test# ! There is currently no way to remove the 'logging level all' level! |