src/CarteBlanche/Loader/LoggerLoader.php
public function load(array $config = null, \CarteBlanche\App\Container $container)
    {
        $mode = $container->get('kernel')->getMode();
/*
        if ($mode && $mode==='prod'){
            $logger = new \Psr\Log\NullLogger;
        } else {
*/
            $log_dir = $container->get('kernel')->getPath('log_dir');
            if (empty($log_dir)) {
                $log_dir = $container->get('kernel')->getPath('var_dir').'logs'.DIRECTORY_SEPARATOR;
            }
            $container->get('kernel')->addPath('log_dir', $log_dir, true, true);
            $logger = new \CarteBlanche\App\Logger;
//        }
        return $logger;
    }
public function load(array $config = null, \CarteBlanche\App\Container $container)
    {
        $mode = $container->get('kernel')->getMode();
/*
        if ($mode && $mode==='prod'){
            $logger = new \Psr\Log\NullLogger;
        } else {
*/
            $log_dir = $container->get('kernel')->getPath('log_dir');
            if (empty($log_dir)) {
                $log_dir = $container->get('kernel')->getPath('var_dir').'logs'.DIRECTORY_SEPARATOR;
            }
            $container->get('kernel')->addPath('log_dir', $log_dir, true, true);
            $logger = new \CarteBlanche\App\Logger;
//        }
        return $logger;
    }
Instance loader

@param   array                       $config
@param   \CarteBlanche\App\Container $container
@return  \CarteBlanche\App\Logger