mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 06:01:21 +00:00
Add audit logging.
This commit is contained in:
23
app/Support/Logging/AuditLogger.php
Normal file
23
app/Support/Logging/AuditLogger.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Support\Logging;
|
||||
|
||||
/**
|
||||
* Class AuditLogger
|
||||
*/
|
||||
class AuditLogger
|
||||
{
|
||||
/**
|
||||
* Customize the given logger instance.
|
||||
*
|
||||
* @param \Illuminate\Log\Logger $logger
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __invoke($logger)
|
||||
{
|
||||
$processor = new AuditProcessor();
|
||||
$logger->pushProcessor($processor);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user