@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $webProcessor = new EccubeWebProcessor(); |
| 101 | 101 | $uidProcessor = new UidProcessor(8); |
| 102 | 102 | |
| 103 | - $FingerCrossedHandler->pushProcessor(function ($record) use ($app, $uidProcessor, $webProcessor) { |
|
| 103 | + $FingerCrossedHandler->pushProcessor(function($record) use ($app, $uidProcessor, $webProcessor) { |
|
| 104 | 104 | // ログフォーマットに出力する値を独自に設定 |
| 105 | 105 | |
| 106 | 106 | $record['level_name'] = sprintf("%-5s", $record['level_name']); |
@@ -20,12 +20,12 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | // ヘルパー作成 |
| 23 | - $app['eccube.monolog.helper'] = $app->share(function ($app) { |
|
| 23 | + $app['eccube.monolog.helper'] = $app->share(function($app) { |
|
| 24 | 24 | return new EccubeMonologHelper($app); |
| 25 | 25 | }); |
| 26 | 26 | |
| 27 | 27 | // ログクラス作成ファクトリー |
| 28 | - $app['eccube.monolog.factory'] = $app->protect(function (array $channelValues) use ($app) { |
|
| 28 | + $app['eccube.monolog.factory'] = $app->protect(function(array $channelValues) use ($app) { |
|
| 29 | 29 | |
| 30 | 30 | $log = new $app['monolog.logger.class']($channelValues['name']); |
| 31 | 31 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | // monologの設定は除外 |
| 41 | 41 | unset($channels['monolog']); |
| 42 | 42 | foreach ($channels as $channel => $channelValues) { |
| 43 | - $app['monolog.logger.'.$channel] = $app->share(function ($app) use ($channelValues) { |
|
| 43 | + $app['monolog.logger.'.$channel] = $app->share(function($app) use ($channelValues) { |
|
| 44 | 44 | return $app['eccube.monolog.factory']($channelValues); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -48,15 +48,15 @@ discard block |
||
| 48 | 48 | // MonologServiceProviderで定義されているmonolog.handlerの置換 |
| 49 | 49 | $channelValues = $app['config']['log']['channel']['monolog']; |
| 50 | 50 | $app['monolog.name'] = $channelValues['name']; |
| 51 | - $app['monolog.handler'] = $app->share(function ($app) use ($channelValues) { |
|
| 51 | + $app['monolog.handler'] = $app->share(function($app) use ($channelValues) { |
|
| 52 | 52 | return $app['eccube.monolog.helper']->getHandler($channelValues); |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | - $app['eccube.monolog.listener'] = $app->share(function () use ($app) { |
|
| 55 | + $app['eccube.monolog.listener'] = $app->share(function() use ($app) { |
|
| 56 | 56 | return new EccubeMonologListener(); |
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | - $app['listener.requestdump'] = $app->share(function ($app) { |
|
| 59 | + $app['listener.requestdump'] = $app->share(function($app) { |
|
| 60 | 60 | return new \Eccube\EventListener\RequestDumpListener($app); |
| 61 | 61 | }); |
| 62 | 62 | } |