--TEST-- Log: Firebug Handler --INI-- date.timezone=UTC --FILE-- log('Debug', PEAR_LOG_DEBUG); $logger->log('Info', PEAR_LOG_INFO); $logger->log('Notice', PEAR_LOG_NOTICE); $logger->log('Warning', PEAR_LOG_WARNING); $logger->log('Error', PEAR_LOG_ERR); $logger->log('Critical', PEAR_LOG_CRIT); $logger->log('Alert', PEAR_LOG_ALERT); $logger->log('Emergency', PEAR_LOG_EMERG); unset($logger); print "\n** START BUFFERING **\n"; $conf = array('buffering' => true); $logger = Log::singleton('firebug', '', 'PHP', $conf); $logger->log('Debug', PEAR_LOG_DEBUG); $logger->log('Info', PEAR_LOG_INFO); $logger->log('Notice', PEAR_LOG_NOTICE); $logger->log('Warning', PEAR_LOG_WARNING); $logger->flush(); print "** FLUSHED **\n"; print "** REST OF BUFFERED **\n"; $logger->log('Error', PEAR_LOG_ERR); $logger->log('Critical', PEAR_LOG_CRIT); $logger->log('Alert', PEAR_LOG_ALERT); $logger->log('Emergency', PEAR_LOG_EMERG); --EXPECT-- ** UNBUFFERED ** ** START BUFFERING ** ** FLUSHED ** ** REST OF BUFFERED **