diff --git a/.gitignore b/.gitignore index e15301f..dea414f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ /htdocs/* !/htdocs/.htaccess !/htdocs/index.php + +/logs/* +!/logs/.gitkeep diff --git a/chandler/Bootstrap.php b/chandler/Bootstrap.php index d5c8697..5fd7046 100644 --- a/chandler/Bootstrap.php +++ b/chandler/Bootstrap.php @@ -23,7 +23,7 @@ class Bootstrap */ private function registerDebugger(): void { - Debugger::enable(CHANDLER_ROOT_CONF["debug"] ? Debugger::DEVELOPMENT : Debugger::PRODUCTION); + Debugger::enable((CHANDLER_ROOT_CONF["debug"] ? Debugger::DEVELOPMENT : Debugger::PRODUCTION), __DIR__ . "/../logs"); Debugger::getBar()->addPanel(new Chandler\Debug\DatabasePanel); } diff --git a/logs/.gitkeep b/logs/.gitkeep new file mode 100644 index 0000000..e69de29