Command Reference Syslog Commands
logging trap [level]
no logging trap
Severity of the log message. The name of the severity or the
numeral can be used. For the details of log severity, see Table 1.
The default is informational(6)
Global configuration mode
To send logs to the Syslog Server, run the logging command in global configuration mode to
configure the Syslog Server. Then, run the logging trap command to specify the severity level of
logs to be sent.
The show logging command displays the configured related parameters and statistics of the log.
The following example enables logs at severity 6 to be sent to the Syslog Server with the address of
202.101.11.22:
Ruijie(config)# logging 202.101.11.22
Ruijie(config)# logging trap informational
Sends logs to the Syslog server.
Displays the log messages and related log configuration
parameters in the buffer.
Use this command to enable the logging function to record user log/exit. Use the no form of this
command to restore the default setting.
No log message is printed recording user log/exit by default.