src/Yoanm/BehatUtilsExtension/ServiceContainer/Configuration/LoggerConfiguration.php
public function getConfigNode()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('logger');
        $rootNode
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('path')
                    ->info('Name of the log file')
                    ->defaultValue('behat.log')
                ->end()
                ->scalarNode('level')
                    ->info('Log level')
                    ->beforeNormalization()
                        ->always()
                        ->then(function ($value) {
                            return Logger::toMonologLevel($value);
                        })
                    ->end()
                    ->defaultValue(Logger::INFO)
                ->end()
            ->end();

        return $rootNode;
    }
public function getConfigNode()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('logger');
        $rootNode
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('path')
                    ->info('Name of the log file')
                    ->defaultValue('behat.log')
                ->end()
                ->scalarNode('level')
                    ->info('Log level')
                    ->beforeNormalization()
                        ->always()
                        ->then(function ($value) {
                            return Logger::toMonologLevel($value);
                        })
                    ->end()
                    ->defaultValue(Logger::INFO)
                ->end()
            ->end();

        return $rootNode;
    }
{@inheritdoc}