如何从Symfony2中的包中覆盖全局Monolog配置

I would like to override the global config.yml Monolog configuration from inside of my bundle. Hovewer, when I try to write something like:

monolog:
    # some new configuration params

I get this error:

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
There is no extension able to load the configuration for "monolog"

Is there a way to modify the configuration without resorting to adding compiler passes?

I know maybe I'm late, but I have found a solution for this because I wanted to do the same.

In you bundle extension load method, you should register the MonologExtension, then you can load monolog configuration in your bundle config files:

public function load(array $configs, ContainerBuilder $container)
{
    $configuration = new Configuration();
    $config        = $this->processConfiguration($configuration, $configs);

    // Register extension to load monolog configuration in bundle.
    $container->registerExtension(new MonologExtension());

    $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
    $loader->load('config_' . $container->getParameter('kernel.environment') . '.yml');
}