File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed
dev/tests/integration/framework/Magento/TestFramework
lib/internal/Magento/Framework/Logger/Handler Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -279,8 +279,14 @@ public function initialize($overriddenParams = [])
279
279
[
280
280
'name ' => 'integration-tests ' ,
281
281
'handlers ' => [
282
- 'system ' => $ objectManager ->get ('Magento\Framework\Logger\Handler\System ' ),
283
- 'debug ' => $ objectManager ->get ('Magento\Framework\Logger\Handler\Debug ' ),
282
+ 'system ' => $ objectManager ->create (
283
+ 'Magento\Framework\Logger\Handler\System ' ,
284
+ ['filePath ' => $ this ->installDir ]
285
+ ),
286
+ 'debug ' => $ objectManager ->create (
287
+ 'Magento\Framework\Logger\Handler\Debug ' ,
288
+ ['filePath ' => $ this ->installDir ]
289
+ ),
284
290
]
285
291
]
286
292
);
Original file line number Diff line number Diff line change @@ -29,11 +29,17 @@ class Base extends StreamHandler
29
29
30
30
/**
31
31
* @param DriverInterface $filesystem
32
+ * @param string $filePath
32
33
*/
33
- public function __construct (DriverInterface $ filesystem )
34
- {
34
+ public function __construct (
35
+ DriverInterface $ filesystem ,
36
+ $ filePath = null
37
+ ) {
35
38
$ this ->filesystem = $ filesystem ;
36
- parent ::__construct (BP . $ this ->fileName , $ this ->loggerType );
39
+ parent ::__construct (
40
+ $ filePath ? $ filePath . $ this ->fileName : BP . $ this ->fileName ,
41
+ $ this ->loggerType
42
+ );
37
43
}
38
44
39
45
/**
Original file line number Diff line number Diff line change @@ -29,13 +29,15 @@ class System extends Base
29
29
/**
30
30
* @param DriverInterface $filesystem
31
31
* @param Exception $exceptionHandler
32
+ * @param string $filePath
32
33
*/
33
34
public function __construct (
34
35
DriverInterface $ filesystem ,
35
- Exception $ exceptionHandler
36
+ Exception $ exceptionHandler ,
37
+ $ filePath = null
36
38
) {
37
39
$ this ->exceptionHandler = $ exceptionHandler ;
38
- parent ::__construct ($ filesystem );
40
+ parent ::__construct ($ filesystem, $ filePath );
39
41
}
40
42
41
43
/**
You can’t perform that action at this time.
0 commit comments