Added logdata action (still needs byte limit). See #40.

This commit is contained in:
brectanus
2007-08-10 00:22:15 +00:00
parent 765dfd0274
commit 8f6385f784
7 changed files with 79 additions and 5 deletions

View File

@@ -232,6 +232,15 @@ static apr_status_t msre_action_msg_init(msre_engine *engine, msre_actionset *ac
return 1;
}
/* logdata */
static apr_status_t msre_action_logdata_init(msre_engine *engine, msre_actionset *actionset,
msre_action *action)
{
actionset->logdata = action->param;
return 1;
}
/* severity */
static apr_status_t msre_action_severity_init(msre_engine *engine,
@@ -1424,6 +1433,18 @@ void msre_engine_register_default_actions(msre_engine *engine) {
NULL
);
/* logdata */
msre_engine_action_register(engine,
"logdata",
ACTION_METADATA,
1, 1,
NO_PLUS_MINUS,
ACTION_CARDINALITY_ONE,
NULL,
msre_action_logdata_init,
NULL
);
/* severity */
msre_engine_action_register(engine,
"severity",