Location: PHPKode > projects > Movim > movim-0.6/system/Moxl/MoxlLogger.php
<?php

namespace moxl;

class MoxlLogger {
    public static $logfilename = 'moxl.log';
    
    public static function log($message, $priority = '') 
    {
        /*if(!($lfp = fopen(self::$logfilename, 'w'))) {
            echo 'Cannot open log file';
        } else {
            if(flock($lfp, LOCK_EX)) {
                ftruncate($lfp, 0);
                fwrite($lfp, date('H:i:s')."\n".$message."\n\n");
                fflush($lfp);
                flock($lfp, LOCK_UN);
            }
            fclose($lfp);
        }*/
        
        openlog('moxl', LOG_NDELAY, LOG_USER);
        $errlines = explode("\n",$message);
        foreach ($errlines as $txt) { syslog(LOG_DEBUG, $txt); } 
        closelog();
        
    }
}
Return current item: Movim