Message logging is enabled by default. It must be enabled to send messages
to any destination other than the console. When enabled, log messages are sent
to a logging process, which logs messages to designated locations
asynchronously to the processes that generated the messages. Beginning in
configuration mode, follow the steps in Figure
to disable
message logging. To re-enable message logging after it has been disabled, use
the logging on global configuration command.
The
logging synchronous global configuration command also
affects the display of messages to the console. When this command is enabled,
messages appear only after Return is pressed.
If message logging is
enabled, messages can be sent to specific locations in addition to the console.
Beginning in privileged EXEC mode, use one or more of the following commands to
specify the locations that receive messages
. Do not
make the buffer size too large because the access point could run out of memory
for other tasks. Use the show memory privileged EXEC
command to view the free processor memory on the access point; however, this
value is the maximum available, and the buffer size should not be set to this
amount.
The logging buffered global configuration
command copies logging messages to an internal buffer. The buffer is circular,
so newer messages overwrite older messages after the buffer is full. To display
the messages that are logged in the buffer, use the show
logging privileged EXEC command. The first message displayed is the
oldest message in the buffer. To clear the contents of the buffer, use the
clear logging privileged EXEC command.
By default,
log messages are not timestamped. Beginning in configuration mode, follow the
steps in Figure
to enable
timestamping of log messages. Because there is a chance that more than one log
message can have the same timestamp, messages can be displayed with sequence
numbers so that a single message can be easily found. By default, sequence
numbers in log messages are not displayed.
From configuration mode,
follow the steps in Figure
to enable
sequence numbers in log messages.
A sample IOS CLI login configuration
is shown in Figure
.