log-priority
This command sets the priority of the log event when a control procedure is triggered.
Syntax
log-priority priority
Parameters
- priority
- Sets the event priority. The priority indicates that all events that are greater than or equal
to this value are logged. Events use the following priority in descending order.
- For only emergency events, enter
emerg. - For alert events and greater, enter
alert. - For critical events and greater, enter
critic. - For error events and greater, enter
error. - For warning events and greater, enter
warn. - For notice events and greater, enter
notice. - For information events and greater, enter
info. - For debug events and greater, enter
debug.
- For only emergency events, enter
Guidelines
The log-priority command sets the priority of the log event when a control procedure is triggered.
This command is required unless you want to events at the debug level, which is
the default value.
Examples
- Create the
Rejectcontrol procedure to reject messages (deny service) for 2½ seconds and add a log event aterrorpriority.# monitor-action Reject New Message Filter Action configuration # type reject # log-priority error # block-interval 2500 # exit # - Create the
BufferThenRejectcontrol procedure to buffer messages and add a log event atwarnpriority. When the buffer is full, reject messages for 5 seconds.# monitor-action BufferThenReject New Message Filter Action configuration # type buffer # log-priority info # block-interval 5000 # exit # - Create the
Logcontrol procedure to add a log event atnotifypriority and take no further action.# monitor-action Log New Message Filter Action configuration # type notify # log-priority notify # exit #