public static function initExtraOptionsHandlers() { self::$extraOptionHandlers = array('*' => array('formatter' => function (HandlerInterface $instance, FormatterInterface $formatter) { $instance->setFormatter($formatter); }, 'processors' => function (HandlerInterface $instance, array $processors) { // We need to reverse the array because Monolog "pushes" processors to top of the stack foreach (array_reverse($processors) as $processor) { $instance->pushProcessor($processor); } }), 'Monolog\\Handler\\LogglyHandler' => array('tags' => function (LogglyHandler $instance, $tags) { $instance->setTag($tags); })); }