public static function create(
        $kernel,
        $filename,
        $maxFiles = 0,
        $level = Logger::DEBUG,
        $bubble = true,
        $filePermission = null,
        $useLocking = false
    ) {
        return new RotatingFileHandler(
            $kernel->getLogDir() . DIRECTORY_SEPARATOR . $filename,
            $maxFiles,
            $level,
            $bubble,
            $filePermission,
            $useLocking
        );
    }
public static function create(
        $kernel,
        $filename,
        $maxFiles = 0,
        $level = Logger::DEBUG,
        $bubble = true,
        $filePermission = null,
        $useLocking = false
    ) {
        return new RotatingFileHandler(
            $kernel->getLogDir() . DIRECTORY_SEPARATOR . $filename,
            $maxFiles,
            $level,
            $bubble,
            $filePermission,
            $useLocking
        );
    }
public static function create ( $ kernel , $ filename , $ maxFiles = 0 , $ level = Logger :: DEBUG , $ bubble = true , $ filePermission = null , $ useLocking = false ) { return new RotatingFileHandler ( $ kernel -> getLogDir ( ) . DIRECTORY_SEPARATOR . $ filename , $ maxFiles , $ level , $ bubble , $ filePermission , $ useLocking ) ; }
Create the logger service.

@param Kernel   $kernel         The kernel to retrieve the log dir from.

@param string   $filename       The filename.

@param int      $maxFiles       The maximal amount of files to keep (0 means unlimited).

@param int      $level          The minimum logging level at which this handler will be triggered.

@param bool     $bubble         Whether the messages that are handled can bubble up the stack or not.

@param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write).

@param bool     $useLocking     Try to lock log file before doing any writes.

@return RotatingFileHandler
Create the logger service .