src/Hades/Log/Logger.php
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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
gc the roate files
gc the roate files