1 | <?php |
||
20 | class LoggerHelper |
||
21 | { |
||
22 | public static $requireSession = true; |
||
23 | |||
24 | /** |
||
25 | * Takes an array of log categories and creates log target configs |
||
26 | * |
||
27 | * @param array $categories |
||
28 | * @param array $targetConfig |
||
29 | * @return array |
||
30 | */ |
||
31 | public static function targetConfigs(array $categories, array $targetConfig = []): array |
||
41 | |||
42 | /** |
||
43 | * Takes a log category and creates a log target config |
||
44 | * |
||
45 | * @param string $category |
||
46 | * @param array $targetConfig |
||
47 | * @return array |
||
48 | */ |
||
49 | public static function targetConfig(string $category, array $targetConfig = []): array |
||
58 | |||
59 | /** |
||
60 | * Takes a log category and creates a log target config |
||
61 | * |
||
62 | * @param string $category |
||
63 | * @param array $targetConfig |
||
64 | * @return array |
||
65 | * @since 2.3.3 |
||
66 | */ |
||
67 | public static function fileTargetConfig(string $category, array $targetConfig = []): array |
||
84 | |||
85 | /** |
||
86 | * @param string $category |
||
87 | * @param array $config |
||
88 | * @return array |
||
89 | * @since 2.6.2 |
||
90 | */ |
||
91 | public static function bootstrapConfig(string $category, array $config = []): array |
||
117 | |||
118 | /** |
||
119 | * @return callable |
||
120 | * |
||
121 | * @deprecated |
||
122 | */ |
||
123 | public static function config(): callable |
||
129 | } |
||
130 |