Logs diferentes para desarrollo
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
#ENVIRONMENT=
|
||||||
|
|
||||||
APP_URL=
|
APP_URL=
|
||||||
|
|
||||||
MYSQL_HOST=db
|
MYSQL_HOST=db
|
||||||
@ -9,3 +11,8 @@ MAX_LOGIN_HOURS=120
|
|||||||
|
|
||||||
REDIS_HOST=redis
|
REDIS_HOST=redis
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
DB_HOST=db
|
||||||
|
DB_DATABASE=incoviba
|
||||||
|
DB_USER=incoviba
|
||||||
|
DB_PASSWORD=
|
||||||
|
@ -16,13 +16,19 @@ return [
|
|||||||
Monolog\Level::Critical
|
Monolog\Level::Critical
|
||||||
),
|
),
|
||||||
new Monolog\Handler\FilterHandler(
|
new Monolog\Handler\FilterHandler(
|
||||||
new Monolog\Handler\RedisHandler($container->get(Predis\ClientInterface::class), 'logs:notices'),
|
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
|
||||||
|
? (new Monolog\Handler\RotatingFileHandler('/logs/notices.log', 10))
|
||||||
|
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
|
||||||
|
: new Monolog\Handler\RedisHandler($container->get(Predis\ClientInterface::class), 'logs:notices'),
|
||||||
Monolog\Level::Notice,
|
Monolog\Level::Notice,
|
||||||
Monolog\Level::Warning
|
Monolog\Level::Warning
|
||||||
),
|
),
|
||||||
new Monolog\Handler\FilterHandler(
|
new Monolog\Handler\FilterHandler(
|
||||||
(new Incoviba\Common\Implement\Log\MySQLHandler($container->get(Incoviba\Common\Define\Connection::class)))
|
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
|
||||||
->setFormatter(new Incoviba\Common\Implement\Log\PDOFormatter()),
|
? (new Monolog\Handler\RotatingFileHandler('/logs/debug.log', 10))
|
||||||
|
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
|
||||||
|
: (new Incoviba\Common\Implement\Log\MySQLHandler($container->get(Incoviba\Common\Define\Connection::class)))
|
||||||
|
->setFormatter(new Incoviba\Common\Implement\Log\PDOFormatter()),
|
||||||
Monolog\Level::Debug,
|
Monolog\Level::Debug,
|
||||||
Monolog\Level::Warning
|
Monolog\Level::Warning
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user