Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
LoggerSetting | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Configuration; |
6 | |
7 | use PeServer\Core\Log\ILogger; |
8 | use PeServer\Core\Serialization\Mapping; |
9 | |
10 | /** |
11 | * ロガー設定。 |
12 | * |
13 | * @immutable |
14 | */ |
15 | class LoggerSetting |
16 | { |
17 | #region variable |
18 | |
19 | /** |
20 | * ロガークラス。 |
21 | * |
22 | * @var class-string<ILogger> |
23 | */ |
24 | #[Mapping(name: 'logger_class')] |
25 | public string $loggerClass; |
26 | |
27 | /** |
28 | * 対象ログレベル。 |
29 | * |
30 | * @phpstan-var ILogger::LOG_LEVEL_* |
31 | */ |
32 | public int $level; |
33 | |
34 | /** |
35 | * フォーマット。 |
36 | * |
37 | * @phpstan-var literal-string |
38 | */ |
39 | public string $format; |
40 | |
41 | /** |
42 | * ロガー独自設定。 |
43 | * |
44 | * @var array<string,mixed> |
45 | */ |
46 | public array $configuration = []; //@phpstan-ignore-line [CODE_READONLY] |
47 | |
48 | #endregion |
49 | } |