Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function init(MonologBootloader $monolog): void |
||
27 | { |
||
28 | // HTTP level errors |
||
29 | $monolog->addHandler( |
||
30 | channel: ErrorHandlerMiddleware::class, |
||
31 | handler: $monolog->logRotate( |
||
32 | directory('runtime') . 'logs/http.log', |
||
33 | ), |
||
34 | ); |
||
35 | |||
36 | // app level errors |
||
37 | $monolog->addHandler( |
||
38 | channel: MonologConfig::DEFAULT_CHANNEL, |
||
39 | handler: $monolog->logRotate( |
||
40 | filename: directory('runtime') . 'logs/error.log', |
||
41 | level: Logger::ERROR, |
||
42 | maxFiles: 25, |
||
43 | bubble: false, |
||
44 | ), |
||
45 | ); |
||
46 | |||
47 | // debug and info messages via global LoggerInterface |
||
48 | $monolog->addHandler( |
||
49 | channel: MonologConfig::DEFAULT_CHANNEL, |
||
50 | handler: $monolog->logRotate( |
||
51 | filename: directory('runtime') . 'logs/debug.log', |
||
52 | ), |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths