1 | <?php |
||
37 | class GenericLogHandlerFactory implements HandlerFactoryInterface |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * The log level to use. |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $defaultLogLevel; |
||
46 | |||
47 | /** |
||
48 | * The log level to use. |
||
49 | * |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $handlerClassName; |
||
53 | |||
54 | /** |
||
55 | * Initialize the processor with the actual configuration instance |
||
56 | * |
||
57 | * @param ConfigurationInterface $configuration the actual configuration instance |
||
58 | * @param string $handlerClassName Classname for monolog Logger handler |
||
59 | */ |
||
60 | public function __construct(ConfigurationInterface $configuration, $handlerClassName) |
||
65 | |||
66 | /** |
||
67 | * Creates a new formatter instance based on the passed configuration. |
||
68 | * |
||
69 | * @param \TechDivision\Import\Configuration\Logger\HandlerConfigurationInterface $handlerConfiguration The handler configuration |
||
70 | * |
||
71 | * @return \Monolog\Handler\HandlerInterface The handler instance |
||
72 | */ |
||
73 | public function factory(HandlerConfigurationInterface $handlerConfiguration) |
||
88 | } |
||
89 |