Changed the logger shutdown function to a better name

This commit is contained in:
Abel Hoogeveen 2015-02-23 12:45:32 +01:00
parent 64f516c20f
commit afcd561253
1 changed files with 2 additions and 2 deletions

View File

@ -17,11 +17,11 @@ class Logger extends Bus{
set_Exception_handler(array($this, "exceptionHandler"));
error_reporting(false);
}
$this->events->addListener(array($this, 'onCoreShutdownEvent'), 'coreShutdownEvent', EventPriority::LOWEST);
$this->events->addListener(array($this, 'shutdown'), 'coreShutdownEvent', EventPriority::LOWEST);
$this->newLevel("Logger Initiated");
}
public function onCoreShutdownEvent() {
public function shutdown() {
// Load last error if thrown
$errfile = "Unknown file";
$errstr = "shutdown";