Separacion logs
This commit is contained in:
@ -17,19 +17,19 @@ return [
|
|||||||
),
|
),
|
||||||
new Monolog\Handler\FilterHandler(
|
new Monolog\Handler\FilterHandler(
|
||||||
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
|
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
|
||||||
? (new Monolog\Handler\RotatingFileHandler('/logs/notices.log', 10))
|
? (new Monolog\Handler\RotatingFileHandler('/logs/debug.log', 10))
|
||||||
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
|
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
|
||||||
: new Monolog\Handler\RedisHandler($container->get(Predis\ClientInterface::class), 'logs:notices'),
|
: new Monolog\Handler\RedisHandler($container->get(Predis\ClientInterface::class), 'logs:notices'),
|
||||||
Monolog\Level::Notice,
|
Monolog\Level::Debug,
|
||||||
Monolog\Level::Warning
|
Monolog\Level::Info
|
||||||
),
|
),
|
||||||
new Monolog\Handler\FilterHandler(
|
new Monolog\Handler\FilterHandler(
|
||||||
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
|
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
|
||||||
? (new Monolog\Handler\RotatingFileHandler('/logs/debug.log', 10))
|
? (new Monolog\Handler\RotatingFileHandler('/logs/notices.log', 10))
|
||||||
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
|
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
|
||||||
: (new Incoviba\Common\Implement\Log\MySQLHandler($container->get(Incoviba\Common\Define\Connection::class)))
|
: (new Incoviba\Common\Implement\Log\MySQLHandler($container->get(Incoviba\Common\Define\Connection::class)))
|
||||||
->setFormatter(new Incoviba\Common\Implement\Log\PDOFormatter()),
|
->setFormatter(new Incoviba\Common\Implement\Log\PDOFormatter()),
|
||||||
Monolog\Level::Debug,
|
Monolog\Level::Notice,
|
||||||
Monolog\Level::Warning
|
Monolog\Level::Warning
|
||||||
)
|
)
|
||||||
], [
|
], [
|
||||||
|
Reference in New Issue
Block a user