public function createProcessor($classOrName, $args = [])
    {
        $classes = [
            $classOrName,
            '\\Monolog\\Processor\\' . $classOrName
        ];

        foreach ($classes as $class)
        {
            if (class_exists($class))
            {
                return (new ReflectionClass($class))->newInstanceArgs($args);
            }
        }

        throw new InvalidArgumentException("Monolog processor [$classOrName] does not exist.");
    }