protected function getFilePath($level = 100)
    {
        $mode = CarteBlanche::getKernel()->getMode();
        return DirectoryHelper::slashDirname($this->directory)
            .$this->getFileName($level)
            .($mode!='prod' ? '_'.$mode : '' )
            .'.'.trim($this->logfile_extension, '.');
    }