Skip to content

Commit

Permalink
Update Logging.php
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Aug 16, 2024
1 parent d3d9008 commit 19fd0d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Core/Providers/Logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public function register()

$this->app->singleton('log', function ($app) {

$logpath = $app['config']['log_path'];
if(!file_exists(APP_ROOT . '/logs/leantime.log')) {
touch(APP_ROOT . '/logs/leantime.log');
}

$app['config']['logging'] = [
'channels' => [
Expand Down

0 comments on commit 19fd0d3

Please sign in to comment.