change log

This commit is contained in:
dongwei 2019-01-24 14:11:50 +08:00
parent 3c5dc19443
commit eb05e29762
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ return [
], ],
'api' => [ 'api' => [
'local' => true, 'local' => true,
'base_uri' => env('RPC_API_URI','http://api.dev.haowumc.com'), 'base_uri' => env('RPC_API_URI','http://sapi.dev.haowumc.com'),
], ],
'op' => [ 'op' => [
'local' => true, 'local' => true,

View File

@ -30,7 +30,7 @@ class BaseServiceProvider extends ServiceProvider
$this->setupConfig(); $this->setupConfig();
$this->app->singleton("rpc.logger", function () { $this->app->singleton("rpc.logger", function () {
$config = config('rpc'); $config = config('rpc');
$stream = new StreamHandler($this->app->storagePath() . $config['log_path']); $stream = new StreamHandler($config['log_path']);
$stream->setFormatter(new $config['log_formatter']()); $stream->setFormatter(new $config['log_formatter']());
$logger = new Logger('RPC.LOGGER'); $logger = new Logger('RPC.LOGGER');
return $logger->pushHandler($stream); return $logger->pushHandler($stream);