Owner's Manual

Syslog Commands 411
Syslog Commands
logging on
The
logging on
global configuration command controls error messages logging. This command
sends debug or error messages to a logging process, which logs messages to designated locations
asynchronously to the process that generated the messages. To disable the logging process, use the
no
form of this command.
Syntax
logging on
no logging on
Default Configuration
Logging is enabled.
Command Mode
Global Configuration mode
User Guidelines
The logging process controls the distribution of logging messages to the various destinations,
such as the logging buffer, logging file, or syslog server. Logging on and off for these
destinations can be individually configured using the
logging buffered
,
logging file
, and
logging
global configuration commands. However, if the
logging on
command is disabled, no
messages are sent to these destinations. Only the console receives messages.
Example
The following example shows how logging is enabled.
logging
The
logging
global configuration command logs messages to a syslog server. To delete the syslog
server with the specified address from the list of syslogs, use the
no
form of this command.
Syntax
logging
ip-address
[
port
port
]
[
severity
level
] [
facility
facility
]
[
description
text
]
no logging
ip-address
ip-address
—Host IP address used as a syslog server or URL of the syslog server.
port
—Port number for syslog messages. If unspecified, the port number defaults to 514.
(Range: 1 - 65535)
Console (config)# logging on