public function testLogCallsGaeStderrLog() { // Effectively disable auto flusing. LogService::setAutoFlushEntries(100); LogService::setAutoFlushBytes(512 * 1024); LogService::setLogFlushTimeLimit(0); LogService::log(LogService::LEVEL_INFO, 'info'); $this->assertEquals(1, count($GLOBALS['_gae_stderr_log_calls'])); $args = $GLOBALS['_gae_stderr_log_calls'][0]; $this->assertEquals(LogService::LEVEL_INFO, $args[0]); $this->assertEquals('info', $args[1]); }
public function testGetAppEngineLogLevel() { $this->assertEquals(0, LogService::getAppEngineLogLevel(LOG_DEBUG)); $this->assertEquals(LogService::LEVEL_CRITICAL, LogService::getAppEngineLogLevel(LOG_EMERG)); }