Create submodule to make it possible to activate logging to syslog

- ToDo for 5.x-3.1, 6.x-2.1 and 7.x-1.1
- Option to deactivate Drupal internal DB logging
- Use of PHPIDS internal class
- Request through #698260: Report attacker ip in mail subject and additional details in mail body

Comments

andrewsuth’s picture

1) I don't think syslogging deserves a sub-module - it should be part of the main module itself.
2) Perhaps also having an option to not log to dblog would be too excessive as well.

I think it can be assumed that if a site has dblog/syslog modules installed, they want to log to them. If they don't have them installed, they don't want to log to them.

So I think some code like this should be enough:

if (module_exists('dblog')) {
  // Code to transform log to acceptable dblog array 

}

if (module_exists('syslog')) {
  // Code to add PHPIDS log to syslog

}
patrickd’s picture

Status: Needs work » Closed (fixed)

dblog and syslog will be treated equally on 7.x-2.x.

See appropriate tasks.