• Resolved johnbburg

    (@johnbburg)


    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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Logging facility option’ is closed to new replies.