Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Log; |
6 | |
7 | use PeServer\Core\Log\ILogger; |
8 | |
9 | interface ILogProvider |
10 | { |
11 | #region function |
12 | |
13 | /** |
14 | * 指定したログの破棄。 |
15 | * |
16 | * @param string $name |
17 | * @return bool |
18 | */ |
19 | public function clear(string $name): bool; |
20 | |
21 | public function clearAll(): void; |
22 | |
23 | /** |
24 | * 追加。 |
25 | * |
26 | * @param string $name |
27 | * @param class-string<ILogger> $logger |
28 | * @param int $level |
29 | * @phpstan-param ILogger::LOG_LEVEL_* $level |
30 | * @param string $format |
31 | * @phpstan-param literal-string $format |
32 | * @param array<string,mixed> $configuration |
33 | */ |
34 | public function add(string $name, string $logger, int $level, string $format, array $configuration): void; |
35 | |
36 | /** |
37 | * ロガーの生成。 |
38 | * |
39 | * @param non-empty-string $header |
40 | * @param int $baseTraceIndex |
41 | * @phpstan-param non-negative-int $baseTraceIndex |
42 | * @return ILogger[] |
43 | */ |
44 | public function create(string $header, int $baseTraceIndex): array; |
45 | |
46 | #endregion |
47 | } |