CLI Guide

Switch Management Commands 2255
Command Mode
Global Configuration mode
User Guidelines
The logging process controls the distribution of logging messages to the
console, logging buffer, logging file, and SYSLOG servers. Logging on and off
for these destinations can be individually configured using the logging
buffered, logging file, and logging
server
commands. However, if the logging
on command is disabled, no messages are sent to these destinations.
Command logging is not affected by this command.
Example
The following example shows how logging is enabled.
console(config)#logging on
logging protocol
Use this command to log messages in RFC5424 format, including time zone
and subsecond resolution time stamps. Use the no form of this command to
set the logging to the default format.
Syntax
logging protocol {protocol-selector}
no logging protocol
protocol-selector—One of the following:
0 – Generate RFC3164 format messages
1 – Generate RFC5424 format messages
Default Configuration
Messages are logged in RFC3164 format by default (logging protocol 0).
Command Modes
Global Configuration mode.