public function testUseSimpleLogger()
{
Logger::useSimpleLogger($this->_logFile);
Logger::info('xxinfoxx');
Logger::err('xxerrxx');
Logger::debug('xxdebugxx');
$contents = file_get_contents($this->_logFile);
$ms = null;
$this->assertEquals(1, preg_match('/xxinfoxx/', $contents, $ms));
$this->assertEquals(1, preg_match('/xxerrxx/', $contents, $ms));
$this->assertEquals(1, preg_match('/xxdebugxx/', $contents, $ms));
Logger::useNullLogger();
Logger::info('bbbb');
$contents1 = file_get_contents($this->_logFile);
$this->assertEquals($contents1, $contents);
}