function setUp() { $GLOBALS['_PX_config']['log_delayed'] = true; $GLOBALS['_PX_config']['log_handler'] = 'Pluf_Log_Remote'; $GLOBALS['_PX_config']['log_remote_server'] = '127.0.0.1'; Pluf_Log::$stack = array(); }
function setUp() { $GLOBALS['_PX_config']['log_delayed'] = false; Pluf_Log::$level = Pluf_Log::ALL; Pluf_Log::$stack = array(); $this->logfile = Pluf::f('pluf_log_file', Pluf::f('tmp_folder', '/tmp') . '/pluf.log'); @unlink($this->logfile); }
/** * Flush the data to the writer. * * This reset the stack. */ public static function flush() { $writer = Pluf::f('log_handler', 'Pluf_Log_File'); call_user_func(array($writer, 'write'), self::$stack); self::$stack = array(); }