This is a handy command that stores log messages so they can be reviewed later.
This is especially useful when you are telneting between multiple routers as you would normally miss the console or debug messages on the router your not connected to.
Each logging level also enables the logging level below it, so logging buffered 7 or logging buffered debug will enable all log messages.
R1(config)#logging buffered <level>
|Logging severity level
Logging buffer size
Immediate action needed (severity=1)
Critical conditions (severity=2)
Debugging messages (severity=7)
System is unusable (severity=0)
Error conditions (severity=3)
Enable filtered logging
Informational messages (severity=6)
Normal but significant conditions (severity=5)
Warning conditions (severity=4)
Enable logging in XML to XML logging buffer
In this example, we will enable logging buffered debug.
|R2(config)#logging buffered debug|
Now we will telnet from R1 to R2 and check the debug output.
R1(config)#do telnet 188.8.131.52
User Access Verification
No active filter modules.
Trap logging: level informational, 30 message lines logged
Log Buffer (4096 bytes):