File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- <?php
1+ <?php declare (strict_types= 1 );
22
33require_once dirname (__DIR__ ) . '/vendor ' . '/autoload.php ' ;
44
88use Bartlett \Monolog \Handler \GrowlHandler ;
99use Bartlett \Monolog \Handler \CallbackFilterHandler ;
1010
11+ use PHPUnit \Runner \Version ;
12+
1113class YourMonolog extends Logger
1214{
1315 public function __construct ($ name = 'PHPUnit ' , $ level = 'debug ' )
@@ -27,7 +29,7 @@ function($record, $handlerLevel) {
2729 );
2830
2931 $ stream = new RotatingFileHandler (
30- __DIR__ . DIRECTORY_SEPARATOR . 'monologTestListener.log ' ,
32+ __DIR__ . DIRECTORY_SEPARATOR . 'monologTestListener-phpunit- ' . Version:: series () . ' .log ' ,
3133 0 , // maximal amount of files to keep (0 means unlimited)
3234 Logger::toMonologLevel ($ level )
3335 );
@@ -42,7 +44,7 @@ function($record, $handlerLevel) {
4244
4345 $ handlers [] = new CallbackFilterHandler ($ growl , $ filters );
4446
45- } catch (\ Exception $ e ) {
47+ } catch (Exception $ e ) {
4648 // Growl server is probably not started
4749 echo $ e ->getMessage (), PHP_EOL , PHP_EOL ;
4850 }
You can’t perform that action at this time.
0 commit comments