allow plugins to also log to a different named logfile and also alter the log message

This commit is contained in:
redmatrix 2015-11-15 19:40:01 -08:00
parent 12b0a9f35f
commit c7b2ec8bba

View File

@ -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);
}
/**