From feb4e81f910eb778b570cd608985f0722136bd04 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sun, 18 Sep 2016 22:23:58 +0100 Subject: factory-default/app-admin/syslog-ng: Split dev-lang/php config --- .../app-admin/syslog-ng/etc/syslog-ng/syslog-ng.conf | 4 ---- .../dev-lang/php/etc/syslog-ng/conf.d/0200-php.conf | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 factory-default/dev-lang/php/etc/syslog-ng/conf.d/0200-php.conf diff --git a/factory-default/app-admin/syslog-ng/etc/syslog-ng/syslog-ng.conf b/factory-default/app-admin/syslog-ng/etc/syslog-ng/syslog-ng.conf index d6d670fa..d266c213 100644 --- a/factory-default/app-admin/syslog-ng/etc/syslog-ng/syslog-ng.conf +++ b/factory-default/app-admin/syslog-ng/etc/syslog-ng/syslog-ng.conf @@ -57,8 +57,4 @@ template t_logformat { template("${ISODATE} ${FACILITY}.${PRIORITY} ${HOST} ${MSGHDR}${MSGONLY}\n"); }; -filter f_php_error { program("apache2") and facility(user); }; - @include "/etc/syslog-ng/conf.d" - -log { source(s_local); filter(f_php_error); destination(d_apache_error); flags(final); }; diff --git a/factory-default/dev-lang/php/etc/syslog-ng/conf.d/0200-php.conf b/factory-default/dev-lang/php/etc/syslog-ng/conf.d/0200-php.conf new file mode 100644 index 00000000..2c5413be --- /dev/null +++ b/factory-default/dev-lang/php/etc/syslog-ng/conf.d/0200-php.conf @@ -0,0 +1,15 @@ +filter f_php_error { + program("apache2") + and facility(user); +}; + +destination d_php_error { + file("/var/log/php/error.log"); +}; + +log { + source(s_local); + filter(f_php_error); + destination(d_php_error); + flags(final); +}; -- cgit v1.2.3