aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-15 19:40:01 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-15 19:40:01 -0800
commitc7b2ec8bbaf30a1836f3778c5d62eeb0246e97f4 (patch)
tree4fadbf53d202406f088224d910ad1b601e634d0c /include
parent12b0a9f35f589d2d571b1362c47dc85aa2cc9970 (diff)
downloadvolse-hubzilla-c7b2ec8bbaf30a1836f3778c5d62eeb0246e97f4.tar.gz
volse-hubzilla-c7b2ec8bbaf30a1836f3778c5d62eeb0246e97f4.tar.bz2
volse-hubzilla-c7b2ec8bbaf30a1836f3778c5d62eeb0246e97f4.zip
allow plugins to also log to a different named logfile and also alter the log message
Diffstat (limited to 'include')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
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);
}
/**