Skip to content

Instantly share code, notes, and snippets.

@sunaoka
Created August 30, 2013 05:29
Show Gist options
  • Save sunaoka/6386578 to your computer and use it in GitHub Desktop.
Save sunaoka/6386578 to your computer and use it in GitHub Desktop.
PHP で error_log = syslog した時の rsyslog の設定ファイル (/etc/rsyslog.d/php.conf)
$Umask 0000
$RepeatedMsgReduction off
$FileCreateMode 0644
$template php_log,"/var/log/php.log"
if ($syslogfacility-text == 'user') and \
(($programname == 'httpd') or ($programname == 'php')) then \
-?php_log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment