mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Added some comments about msc_set_log_cb
This commit is contained in:
parent
d044c7aaec
commit
1cf1e313cc
@ -152,6 +152,18 @@ void ModSecurity::setServerLogCb(LogCb cb) {
|
|||||||
m_logCb = (LogCb) cb;
|
m_logCb = (LogCb) cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name msc_set_log_cb
|
||||||
|
* @brief Set the log callback functiond
|
||||||
|
*
|
||||||
|
* It is neccessary to indicate to libModSecurity which function within the
|
||||||
|
* connector should be called when logging is required.
|
||||||
|
*
|
||||||
|
* @oarm msc The current ModSecurity instance
|
||||||
|
* @param LogCB The callback function to which a reference to the log msgs
|
||||||
|
* will be passed.
|
||||||
|
*
|
||||||
|
*/
|
||||||
extern "C" void msc_set_log_cb(ModSecurity *msc, LogCb cb) {
|
extern "C" void msc_set_log_cb(ModSecurity *msc, LogCb cb) {
|
||||||
msc->setServerLogCb(cb);
|
msc->setServerLogCb(cb);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user