Total Complexity | 10 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Log |
||
10 | { |
||
11 | protected static function getHandlers() |
||
12 | { |
||
13 | return LogLaravel::getHandlers(); |
||
14 | } |
||
15 | |||
16 | public static function getLaravelLogFiles() |
||
17 | { |
||
18 | $files = []; |
||
19 | |||
20 | foreach (self::getHandlers() as $handler) { |
||
21 | if ($handler instanceof StreamHandler && !$handler instanceof RotatingFileHandler) { |
||
22 | $files[] = $handler->getUrl(); |
||
23 | } |
||
24 | } |
||
25 | |||
26 | return $files; |
||
27 | } |
||
28 | |||
29 | public static function closeHandlers() |
||
35 | } |
||
36 | } |
||
37 | } |
||
40 |