55
(Optional.) Configuring the maximum size of the trace log file
(Optional.) Enabling synchronous information output
(Optional.) Enabling duplicate log suppression
(Optional.) Disabling an interface from generating link up or link down logs
(Optional.) Setting the minimum storage period for logs
Outputting logs to the console
1. Enter system view.
N/A
2.
center.
info-center enable
By default, the information center
is enabled.
3. Configure an output rule for
the console.
info-center source
{ module-name |
default
}
{
console
|
monitor
|
logbuffer
|
logfile
|
loghost
} {
deny
|
level
severity }
For information about default
output rules, see "Default output
rules for logs."
4. (Optional.)
timestamp format.
info-center timestamp
{
boot
|
date
|
none
}
By default, the timestamp format
is
date
.
5. Return to user view.
quit
N/A
6. (Optional.) Enable log output
to the console.
terminal monitor
The default setting is enabled.
7. Enable the display of debug
information on the current
terminal.
terminal debugging
By default, the display of debug
information is disabled on the
current terminal.
8.
(Optional.) Set the lowest
severity level of logs that can
be output to the console.
terminal logging level
severity
(informational).
Outputting logs to the monitor terminal
Monitor terminals refer to terminals that log in to the device through the VTY line.
To output logs to the monitor terminal:
1. Enter system view.
system-view
N/A
2.
center.
info-center enable
By default, the information center
is enabled.
3. Configure an output rule for
the monitor terminal.
info-center source
{ module-name |
default
}
{
console
|
monitor
|
logbuffer
|
logfile
|
loghost
} {
deny
|
level
severity }
For
information about default
output rules, see "Default output
rules for logs."
4. (Optional.)
timestamp format.
info-center timestamp
{
boot
|
date
|
none
}
By default, the timestamp format
is
date
.