Skip to content

Commit f3d9328

Browse files
committed
gitflow-hotfix-stash: fix-log
1 parent 782539e commit f3d9328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function generateLog($var, $logFileName, $logType = 'error'): void
2424
$date = function_exists('now') ? now()->toDateString() : date('Y-m-d');
2525

2626
if (empty($logFileName)) {
27-
$logFilePath = storage_path('logs/' . date('Y-m-d') . 'general_' . $date . '.log');
27+
$logFilePath = storage_path('logs/' . date('Y-m-d') . '/general_' . $date . '.log');
2828
} else {
29-
$logFilePath = storage_path("logs/" . date('Y-m-d') . "{$logFileName}_" . $date . '.log');
29+
$logFilePath = storage_path("logs/" . date('Y-m-d') . "/{$logFileName}_" . $date . '.log');
3030
}
3131
$log = Log::build([
3232
'driver' => 'single',

0 commit comments

Comments
 (0)