Make logging facility configurable

This commit is contained in:
Zach Copley
2009-07-02 16:06:13 -07:00
parent 608a7ba77c
commit d80c553e5f
3 changed files with 7 additions and 2 deletions

View File

@@ -1098,7 +1098,8 @@ function common_ensure_syslog()
{
static $initialized = false;
if (!$initialized) {
openlog(common_config('syslog', 'appname'), 0, LOG_USER);
openlog(common_config('syslog', 'appname'), 0,
common_config('syslog', 'facility'));
$initialized = true;
}
}