src/Arvici/Heart/Log/Logger.php
public static function clearLog($level = null)
    {
        foreach (self::$files as $fileName => $fileLevel) {
            if ($level === null || $level === $fileLevel) {
                $fileName = self::$path . $fileName;

                if (file_exists($fileName)) {
                    @unlink($fileName);
                }
                continue;
            }
        }

        // Restart current logger instance.
        self::$instance = null;
        self::start();
    }
public static function clearLog($level = null)
    {
        foreach (self::$files as $fileName => $fileLevel) {
            if ($level === null || $level === $fileLevel) {
                $fileName = self::$path . $fileName;

                if (file_exists($fileName)) {
                    @unlink($fileName);
                }
                continue;
            }
        }

        // Restart current logger instance.
        self::$instance = null;
        self::start();
    }
public static function clearLog ( $ level = null ) { foreach ( self :: $ files as $ fileName => $ fileLevel ) { if ( $ level === null || $ level === $ fileLevel ) { $ fileName = self :: $ path . $ fileName ; if ( file_exists ( $ fileName ) ) { @ unlink ( $ fileName ) ; } continue ; } } // Restart current logger instance. self :: $ instance = null ; self :: start ( ) ; }
Clear and delete log files.

@param mixed|null $level Null for every level (default).
Clear and delete log files .