CLI Reference Guide-R04

Table Of Contents
Chapter 4
| System Management Commands
Event Logging
– 154 –
Command Usage
The higher the syslog severity level the more information is captured and
consequently the log file size growth will be greater.
Severity levels are described in Table 21.
Example
Console(config)#logging level user-login 7
Console(config)#
logging on This command controls logging of error messages, sending debug or error
messages to a logging process. The no form disables the logging process.
Syntax
[no] logging on
Default Setting
None
Command Mode
Global Configuration
Command Usage
The logging process controls error messages saved to switch memory or sent to
remote syslog servers. You can use the logging history command to control the
type of error messages that are stored in memory. You can use the logging trap
command to control the type of error messages that are sent to specified syslog
servers.
Example
Console(config)#logging on
Console(config)#
Related Commands
logging history (152)
logging trap (154)
clear log (155)
logging trap This command enables the logging of system messages to a remote server, or
limits the syslog messages saved to a remote server based on severity. Use this
command without a specified level to enable remote logging. Use the no form to
disable remote logging.