Add new Logging option to turn on error_log write
On default the level for error_log write is Emergency. This can be changed either on class creation or via set/get methods. If logging is skipped because the logging level does not match the main logging level the error_log write is also skipped. Added MARK fields in the Logging class
This commit is contained in:
@@ -82,6 +82,7 @@ $log->error('Cannot process data', ['error' => 'log']);
|
||||
$log->critical('Critical message', ['critical' => 'log']);
|
||||
$log->alert('Alert message', ['Alert' => 'log']);
|
||||
$log->emergency('Emergency message', ['Emergency' => 'log']);
|
||||
error_log('TRIGGER ERROR LOG MANUAL: Emergency');
|
||||
print "Log File: " . $log->getLogFile() . "<br>";
|
||||
|
||||
$log->setLogFlag(Flag::per_run);
|
||||
|
||||
Reference in New Issue
Block a user