Skip to content

Commit 0a58fb7

Browse files
committed
Merge branch 'hotfix/fix-log'
2 parents 782539e + f3d9328 commit 0a58fb7

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)