src/UCRM/Plugins/Log.php
public static function clear(): void
    {
        $log_file =
            Plugin::dataPath().
            DIRECTORY_SEPARATOR."plugin.log";

        if(!file_exists(dirname($log_file)))
            mkdir(dirname($log_file));

        file_put_contents(
            $log_file,
            "",
            LOCK_EX
        );
    }
public static function clear(): void
    {
        $log_file =
            Plugin::dataPath().
            DIRECTORY_SEPARATOR."plugin.log";

        if(!file_exists(dirname($log_file)))
            mkdir(dirname($log_file));

        file_put_contents(
            $log_file,
            "",
            LOCK_EX
        );
    }
public static function clear ( ) : void { $ log_file = Plugin :: dataPath ( ) . DIRECTORY_SEPARATOR . "plugin.log" ; if ( ! file_exists ( dirname ( $ log_file ) ) ) mkdir ( dirname ( $ log_file ) ) ; file_put_contents ( $ log_file , "" , LOCK_EX ) ; }
Clears this Plugin's log file.
Clears this Plugin s log file .