Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Logging facility option

$
0
0

Replies: 0

Hi, I noticed this module uses LOG_DAEMON hard-coded as the “facility” when opening a connection to syslog. I believe in most setups, this will default to /var/log/messages. It would be nice if this could be configurable, so people could use their syslog configuration to change where these end up. This is especially helpful if you are trying to push your log data to external services, like AWS’ CloudTrail.

The current call to:

openlog($module, LOG_PID, LOG_DAEMON);

change to something like

openlog($module, LOG_PID, $facility);

As an example, in Drupal core, the syslog module can be configured to use the PHP envrionmental constants LOG_LOCAL0 through LOG_LOCAL7.


Viewing all articles
Browse latest Browse all 67836

Trending Articles