Skip to content

Commit

Permalink
Fix AuthUserProcessor for ResettableInterface signature
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej committed Sep 21, 2023
1 parent d37f9a5 commit 9426fb5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

<!-- /TOC -->

# Laravel and Lumen Extended Logging
# Laravel Extended Logging

Provide some ready-made logging extensions to make it easier to deploy
Laravel and Lumen into multiple containers.
Laravel into multiple containers.

The main features are:

Expand Down Expand Up @@ -105,7 +105,7 @@ use Consilience\Laravel\ExtendedLogging\Tap as ExtendedTap;

```php
'channels' => [

// Use this channel for running in a container.
// Sends all logs to stderr in a structured form, with additional metadata.
// Can be mixed in a stack with other channels.
Expand All @@ -121,7 +121,7 @@ use Consilience\Laravel\ExtendedLogging\Tap as ExtendedTap;
'formatter' => JsonFormatter::class,
'formatter_with' => [],
],

//...
],
```
Expand Down Expand Up @@ -212,7 +212,7 @@ whatever you use to capture and wrap the log messages.
"subsystem": "admin-app"
},
},
```
```

## TODO

Expand Down
1 change: 0 additions & 1 deletion src/Processor/AppNameProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

use Monolog\LogRecord;
use Monolog\ResettableInterface;
use Monolog\Processor\ProcessorInterface;

class AppNameProcessor implements ProcessorInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/AuthUserProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __invoke(LogRecord $record)
return $record;
}

public function reset()
public function reset(): void
{
$this->userId = null;

Expand Down
1 change: 0 additions & 1 deletion src/Processor/JobNameProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

use Monolog\LogRecord;
use Monolog\ResettableInterface;
use Monolog\Processor\ProcessorInterface;
use Consilience\Laravel\ExtendedLogging\LoggingService;

Expand Down

0 comments on commit 9426fb5

Please sign in to comment.