src/Extension/LogExtension.php
public function load(array $configs, ContainerBuilder $container)
    {
        $configs[] = $this->options;
        $configuration = $this->getConfiguration($configs, $container);
        $config = $this->processConfiguration($configuration, $configs);

        foreach ($config['channels'] as $name => $channelConfig) {
            $channelConfig['name'] = $name;
            switch ($channelConfig['handler']) {
                case 'stream':
                    $this->configureStreamChannel($channelConfig, $container);

                    break;

                case 'error_log':
                    $this->configureErrorLogChannel($channelConfig, $container);

                    break;
            }
        }
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configs[] = $this->options;
        $configuration = $this->getConfiguration($configs, $container);
        $config = $this->processConfiguration($configuration, $configs);

        foreach ($config['channels'] as $name => $channelConfig) {
            $channelConfig['name'] = $name;
            switch ($channelConfig['handler']) {
                case 'stream':
                    $this->configureStreamChannel($channelConfig, $container);

                    break;

                case 'error_log':
                    $this->configureErrorLogChannel($channelConfig, $container);

                    break;
            }
        }
    }
Loads a specific configuration.

@param array            $configs   An array of configuration values
@param ContainerBuilder $container A ContainerBuilder instance