public static function gc($name)
    {
        $files = glob(self::$folder . "/{$name}_*.log");
        foreach ($files as $filename) {
            $date = str_replace(self::$folder . "/{$name}_" , "", $filename);
            $date = str_replace(".log", "", $date);
            if (time() - strtotime($date) > self::$rotate *  3600 * 24) {
                unlink($filename);
            }
        }
    }