From c7b2ec8bbaf30a1836f3778c5d62eeb0246e97f4 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 15 Nov 2015 19:40:01 -0800 Subject: allow plugins to also log to a different named logfile and also alter the log message --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index 166dbb4fb..4053c15b2 100644 --- a/include/text.php +++ b/include/text.php @@ -564,7 +564,7 @@ function logger($msg, $level = 0) { call_hooks('logger',$pluginfo); if(! $pluginfo['logged']) - @file_put_contents($logfile, $s, FILE_APPEND); + @file_put_contents($pluginfo['filename'], $pluginfo['message'], FILE_APPEND); } /** -- cgit v1.2.3