allow plugins to also log to a different named logfile and also alter the log message
This commit is contained in:
parent
12b0a9f35f
commit
c7b2ec8bba
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user