Title: Logging facility option
Last modified: June 7, 2017

---

# Logging facility option

 *  Resolved [johnbburg](https://wordpress.org/support/users/johnbburg/)
 * (@johnbburg)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/logging-facility-option/)
 * 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)

 *  Thread Starter [johnbburg](https://wordpress.org/support/users/johnbburg/)
 * (@johnbburg)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/logging-facility-option/#post-9252968)
 * I’ve “forked” this project o GitHub and set up an “facility” branch that I think
   allows these changes. Here’s the commit that should make all the necessary changes.
   [https://github.com/johnbburg/wp2syslog/commit/ad699c46b0432f2d29c755285f3a55ce2ea3bf23](https://github.com/johnbburg/wp2syslog/commit/ad699c46b0432f2d29c755285f3a55ce2ea3bf23).
   I’m working with some of my colleagues who are better experts in WordPress (my
   background is in Drupal) to review these changes.

Viewing 1 replies (of 1 total)

The topic ‘Logging facility option’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp2syslog.svg)
 * [wp2syslog](https://wordpress.org/plugins/wp2syslog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp2syslog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp2syslog/)
 * [Active Topics](https://wordpress.org/support/plugin/wp2syslog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp2syslog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp2syslog/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [johnbburg](https://wordpress.org/support/users/johnbburg/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/logging-facility-option/#post-9252968)
 * Status: resolved