コード例 #1
0
ファイル: Log.php プロジェクト: burbuja/pluf
/**
 * Assertion handler.
 *
 * @param $file Name of the file where the assert is called
 * @param $line Line number of the file where the assert is called
 * @param $code Code evaluated by the assert call
 */
function Pluf_Log_assert($file, $line, $code)
{
    if (Pluf_Log::$level <= Pluf_Log::$assert_level and Pluf_Log::$level != 10) {
        Pluf_Log::$stack[] = array(microtime(true), Pluf_Log::$assert_level, Pluf_Log::$assert_mess, $file, $line, $code);
        if (!Pluf::f('log_delayed', false)) {
            Pluf_Log::flush();
        }
    }
    Pluf_Log::$assert_level = 6;
    Pluf_Log::$assert_mess = null;
}