Command Reference Syslog Commands
remove one policy, Use the no logging policy command to remove all policies.
logging policy module module-name [ not-lesser-than ] level direction { all | server | file |
console | monitor | buffer }
no logging policy module module-name [ not-lesser-than ] level direction { all | server | file |
console | monitor | buffer }
The name of the module applying the ranking policy.
If this parameter is specified, only when the log’s level is not lower
than the configured level can the log be sent. Otherwise, the log is
filtered.
If this parameter is not specified, only when the log’s level is not
higher than the configured level can the log be sent. Otherwise, the
log is filtered.
Applies the ranking policy in all directions.
Applies the ranking policy to the direction toward the server.
Applies the ranking policy to the direction toward the log file.
Applies the ranking policy to the direction toward the console.
Applies the ranking policy to the direction toward the remote server.
Applies the ranking policy to the direction toward the buffer.
This function is disabled by default.
Global configuration mode
This command is used to send logs to different destinations based on module and severity.
The following example sends logs of the SYS module leveled above 5 to the console and sends logs
of the SYS module leveled below 3 to the buffer.
Ruijie(config)# logging policy module SYS not-lesser-than 5 direction console
Ruijie(config)# logging policy module SYS 3 direction buffer