public function test_should_factory_get_log_works_fine()
 {
     $log = Factory::getLog('Iamnotexist');
     $this->assertTrue($log instanceof \Myfox\Lib\Blackhole);
     Factory::registerLog('unittest', sprintf('log://debug.notice.warning.error/%s/tmp/test.log?buffer=0', __DIR__));
     $log = Factory::getLog('UnittEst ');
     $this->assertTrue($log instanceof \Myfox\Lib\Log);
 }
 /**
  * 构造函数
  *
  * @access public
  * @return void
  */
 public function __construct($option)
 {
     $this->option = (array) $option + $this->option;
     $this->cleanup();
     $this->log = \Myfox\Lib\Factory::getLog('daemon');
 }