original_string: protected function registeLog()
      {
          $handler = new StreamHandler(
              $this->config->get('log.file'),
              $this->config->get('log.level', Logger::WARNING)
          );
          $handler->setFormatter(new LineFormatter("%datetime% > %level_name% > %message% %context% %extra%\n\n"));
  
          $logger = new Logger('yansongda.pay');
          $logger->pushHandler($handler);
  
          Log::setLogger($logger);
      }
code: protected function registeLog()
      {
          $handler = new StreamHandler(
              $this->config->get('log.file'),
              $this->config->get('log.level', Logger::WARNING)
          );
          $handler->setFormatter(new LineFormatter("%datetime% > %level_name% > %message% %context% %extra%\n\n"));
  
          $logger = new Logger('yansongda.pay');
          $logger->pushHandler($handler);
  
          Log::setLogger($logger);
      }
code_tokens: protected function registeLog ( ) { $ handler = new StreamHandler ( $ this -> config -> get ( 'log.file' ) , $ this -> config -> get ( 'log.level' , Logger :: WARNING ) ) ; $ handler -> setFormatter ( new LineFormatter ( "%datetime% > %level_name% > %message% %context% %extra%\n\n" ) ) ; $ logger = new Logger ( 'yansongda.pay' ) ; $ logger -> pushHandler ( $ handler ) ; Log :: setLogger ( $ logger ) ; }
docstring: Registe log service.
  
  @author yansongda <me@yansongda.cn>
docstring_tokens: Registe log service .