Skip to content

Commit ccdc11d

Browse files
committed
Use daily driver for default queue log channel
1 parent 59f2f85 commit ccdc11d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ composer require larawelders/queue-event-logger
3838

3939
The package uses Laravel package discovery, so no manual provider registration is required.
4040

41-
The package registers a default `queue` log channel at runtime if your application does not already define one. By default, it uses a `single` channel that writes to `storage/logs/queue.log`.
41+
The package registers a default `queue` log channel at runtime if your application does not already define one. By default, it uses a `daily` channel that writes to date-named files under `storage/logs/queue.log`.
4242

4343
If you want to customize the channel name or logger configuration, publish the package config:
4444

@@ -52,7 +52,7 @@ The published config lets you change both the channel name and the underlying ch
5252
'channel' => 'queue',
5353

5454
'channel_config' => [
55-
'driver' => 'single',
55+
'driver' => 'daily',
5656
'path' => storage_path('logs/queue.log'),
5757
'level' => 'debug',
5858
],

config/queue-event-logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'channel' => 'queue',
77

88
'channel_config' => [
9-
'driver' => 'single',
9+
'driver' => 'daily',
1010
'path' => storage_path('logs/queue.log'),
1111
'level' => 'debug',
1212
],

tests/Feature/QueueEventLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function test_it_registers_the_default_queue_log_channel_configuration():
3232
$this->assertSame('queue', config('queue-event-logger.channel'));
3333
$this->assertSame(
3434
[
35-
'driver' => 'single',
35+
'driver' => 'daily',
3636
'path' => storage_path('logs/queue.log'),
3737
'level' => 'debug',
3838
],

0 commit comments

Comments
 (0)