summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--factory-default/app-admin/syslog-ng/etc/syslog-ng/syslog-ng.conf4
-rw-r--r--factory-default/dev-lang/php/etc/syslog-ng/conf.d/0200-php.conf15
2 files changed, 15 insertions, 4 deletions
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);
+};