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);
    }
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);
    }
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 ) ; }
Registe log service.

@author yansongda <me@yansongda.cn>
Registe log service .