Release 2.4.0 (#4427)
* button to duplicate old timesheets, even those from lockdown period * bump composer packages * fixes tooltip remains in view #4426 * fix js error if all widgets were removed * allow to open timesheet edit dialog from export listing * css classes for timesheet context menu, so they can be hidden * added flag to force a user to set password upon login * enable lazy-ghost-objects to fix deprecation * change user, username, internal_rate export column labels * helper method to find user by displayname * log improvements and format changes * deactivate broken schema validation
This commit is contained in:
28
src/Logger/LogProcessor.php
Normal file
28
src/Logger/LogProcessor.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Logger;
|
||||
|
||||
use Monolog\Attribute\AsMonologProcessor;
|
||||
use Monolog\LogRecord;
|
||||
|
||||
final class LogProcessor
|
||||
{
|
||||
#[AsMonologProcessor]
|
||||
public function __invoke(LogRecord $record): LogRecord
|
||||
{
|
||||
if (\array_key_exists('bundle', $record->context)) {
|
||||
$record->extra['channel'] = strtoupper($record->context['bundle']);
|
||||
} else {
|
||||
$record->extra['channel'] = $record->channel;
|
||||
}
|
||||
|
||||
return $record;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user