Commit c4862509 by 叶明星

添加日志上报

parent 72734e7e
Showing with 10 additions and 0 deletions
...@@ -40,3 +40,11 @@ RABBIT_IP=192.168.1.237 ...@@ -40,3 +40,11 @@ RABBIT_IP=192.168.1.237
RABBIT_PORT=5672 RABBIT_PORT=5672
RABBIT_USER=huntadmin RABBIT_USER=huntadmin
RABBIT_PASS=jy2y2900 RABBIT_PASS=jy2y2900
//LOG RBMQ配置
RABBITMQ_LOG_HOST=192.168.1.237
RABBITMQ_LOG_PORT=5672
RABBITMQ_LOG_VHOST=/
RABBITMQ_LOG_LOGIN=huntadmin
RABBITMQ_LOG_PASSWORD=jy2y2900
RABBITMQ_LOG_QUEUE=scm_wms_log
<?php <?php
use Common\Exceptions\Handler; use Common\Exceptions\Handler;
use ScmWmsCommon\Log\LogMiddleware;
require_once __DIR__.'/../vendor/autoload.php'; require_once __DIR__.'/../vendor/autoload.php';
...@@ -63,6 +64,7 @@ $app->singleton( ...@@ -63,6 +64,7 @@ $app->singleton(
$app->middleware([ $app->middleware([
// App\Http\Middleware\ExampleMiddleware::class // App\Http\Middleware\ExampleMiddleware::class
App\Http\Middleware\UniqueMiddleware::class, App\Http\Middleware\UniqueMiddleware::class,
ScmWmsCommon\Log\LogMiddleware::class
]); ]);
// $app->routeMiddleware([ // $app->routeMiddleware([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment