src/Handler/BrowserConsoleHandlerFactory.php 1 location
|
@@ 11-23 (lines=13) @@
|
| 8 |
|
use Monolog\Logger; |
| 9 |
|
use WShafer\PSR11MonoLog\FactoryInterface; |
| 10 |
|
|
| 11 |
|
class BrowserConsoleHandlerFactory implements FactoryInterface |
| 12 |
|
{ |
| 13 |
|
public function __invoke(array $options) |
| 14 |
|
{ |
| 15 |
|
$level = (int) ($options['level'] ?? Logger::DEBUG); |
| 16 |
|
$bubble = (bool) ($options['bubble'] ?? true); |
| 17 |
|
|
| 18 |
|
return new BrowserConsoleHandler( |
| 19 |
|
$level, |
| 20 |
|
$bubble |
| 21 |
|
); |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/Handler/ChromePHPHandlerFactory.php 1 location
|
@@ 11-23 (lines=13) @@
|
| 8 |
|
use Monolog\Logger; |
| 9 |
|
use WShafer\PSR11MonoLog\FactoryInterface; |
| 10 |
|
|
| 11 |
|
class ChromePHPHandlerFactory implements FactoryInterface |
| 12 |
|
{ |
| 13 |
|
public function __invoke(array $options) |
| 14 |
|
{ |
| 15 |
|
$level = (int) ($options['level'] ?? Logger::DEBUG); |
| 16 |
|
$bubble = (bool) ($options['bubble'] ?? true); |
| 17 |
|
|
| 18 |
|
return new ChromePHPHandler( |
| 19 |
|
$level, |
| 20 |
|
$bubble |
| 21 |
|
); |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/Handler/FirePHPHandlerFactory.php 1 location
|
@@ 11-23 (lines=13) @@
|
| 8 |
|
use Monolog\Logger; |
| 9 |
|
use WShafer\PSR11MonoLog\FactoryInterface; |
| 10 |
|
|
| 11 |
|
class FirePHPHandlerFactory implements FactoryInterface |
| 12 |
|
{ |
| 13 |
|
public function __invoke(array $options) |
| 14 |
|
{ |
| 15 |
|
$level = (int) ($options['level'] ?? Logger::DEBUG); |
| 16 |
|
$bubble = (bool) ($options['bubble'] ?? true); |
| 17 |
|
|
| 18 |
|
return new FirePHPHandler( |
| 19 |
|
$level, |
| 20 |
|
$bubble |
| 21 |
|
); |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/Handler/TestHandlerFactory.php 1 location
|
@@ 11-23 (lines=13) @@
|
| 8 |
|
use Monolog\Logger; |
| 9 |
|
use WShafer\PSR11MonoLog\FactoryInterface; |
| 10 |
|
|
| 11 |
|
class TestHandlerFactory implements FactoryInterface |
| 12 |
|
{ |
| 13 |
|
public function __invoke(array $options) |
| 14 |
|
{ |
| 15 |
|
$level = (int) ($options['level'] ?? Logger::DEBUG); |
| 16 |
|
$bubble = (bool) ($options['bubble'] ?? true); |
| 17 |
|
|
| 18 |
|
return new TestHandler( |
| 19 |
|
$level, |
| 20 |
|
$bubble |
| 21 |
|
); |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/Handler/ZendMonitorHandlerFactory.php 1 location
|
@@ 17-29 (lines=13) @@
|
| 14 |
|
* |
| 15 |
|
* No Zend Server available to test against |
| 16 |
|
*/ |
| 17 |
|
class ZendMonitorHandlerFactory implements FactoryInterface |
| 18 |
|
{ |
| 19 |
|
/** |
| 20 |
|
* @param array $options |
| 21 |
|
* @return ZendMonitorHandler |
| 22 |
|
* @throws MissingExtensionException |
| 23 |
|
*/ |
| 24 |
|
public function __invoke(array $options) |
| 25 |
|
{ |
| 26 |
|
$level = (int) ($options['level'] ?? Logger::DEBUG); |
| 27 |
|
$bubble = (bool) ($options['bubble'] ?? true); |
| 28 |
|
|
| 29 |
|
return new ZendMonitorHandler( |
| 30 |
|
$level, |
| 31 |
|
$bubble |
| 32 |
|
); |