diff --git a/src/FuzeWorks/Configurator.php b/src/FuzeWorks/Configurator.php index a3fd5e6..824c6cf 100644 --- a/src/FuzeWorks/Configurator.php +++ b/src/FuzeWorks/Configurator.php @@ -270,7 +270,7 @@ class Configurator public function enableDebugMode(): Configurator { $this->parameters['debugEnabled'] = true; - $this->parameters['debugMatch'] = (isset($this->parameters['debugMatch']) ? $this->parameters['debugMatch'] : false); + $this->parameters['debugMatch'] = (isset($this->parameters['debugMatch']) ? $this->parameters['debugMatch'] : true); return $this; } @@ -349,6 +349,7 @@ class Configurator // Then load the framework $container = Core::init(); + Logger::newLevel("Creating container..."); if ($debug == true) Logger::enable(); @@ -402,6 +403,7 @@ class Configurator } $container->initFactory(); + Logger::stopLevel(); return $container; } } \ No newline at end of file diff --git a/src/FuzeWorks/Core.php b/src/FuzeWorks/Core.php index 097bc99..f6a983e 100644 --- a/src/FuzeWorks/Core.php +++ b/src/FuzeWorks/Core.php @@ -109,16 +109,17 @@ class Core chdir(self::$cwd); // Log the shutdown - Logger::logInfo("Shutting FuzeWorks down gracefully"); + Logger::newLevel("Shutting FuzeWorks down gracefully"); // Fire the Shutdown event $event = Events::fireEvent('coreShutdownEvent'); - if ($event->isCancelled() === false) { Logger::shutdownError(); Logger::shutdown(); } + + Logger::stopLevel(); } /** diff --git a/src/Layout/layout.logger_http.php b/src/Layout/layout.logger_http.php index 38dea88..56a88fa 100644 --- a/src/Layout/layout.logger_http.php +++ b/src/Layout/layout.logger_http.php @@ -38,7 +38,7 @@ $layer = 0; foreach ($logs as $log) { if ($log['type'] == 'LEVEL_START') { ++$layer; - $color = 255 - ($layer * 25); + $color = 255 - ($layer * 20); $string .= '
'; $string .= '
' . $log['message'] . '' . (!empty($log['runtime']) ? '(' . round($log['runtime'] * 1000, 4) . 'ms)' : '') . '
'; } elseif ($log['type'] == 'LEVEL_STOP') {