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 (23-27)
logging trap (23-29)
clear log (23-29)
23-26
Event Logging Commands
This section describes commands used to configure event logging on the switch.
Table 23-8 Event Logging Commands
Command
logging on
logging history
logging host
logging facility
logging trap
clear log
show logging
show log
Function
Controls logging of error messages
Limits syslog messages saved to switch memory based on
severity
Adds a syslog server host IP address that will receive logging
messages
Sets the facility type for remote logging of syslog messages
Limits syslog messages saved to a remote server based on
severity
Clears messages from the logging buffer
Mode Page
GC 23-26
GC 23-27
GC 23-28
GC 23-28
GC
PE
23-29
23-29
23-30
23-31
Displays the state of logging PE
Displays log messages PE
System Management Commands
23