Fixed logs generated by shlink during API tests

This commit is contained in:
Alejandro Celaya 2021-03-14 08:49:38 +01:00
parent 9feb72235a
commit 4439685403
2 changed files with 6 additions and 5 deletions

View file

@ -33,7 +33,7 @@
"laminas/laminas-stdlib": "^3.2",
"lcobucci/jwt": "^4.0",
"league/uri": "^6.2",
"lstrojny/functional-php": "^1.15",
"lstrojny/functional-php": "^1.17",
"mezzio/mezzio": "^3.3",
"mezzio/mezzio-fastroute": "^3.1",
"mezzio/mezzio-problem-details": "^1.3",

View file

@ -9,7 +9,7 @@ use Laminas\ConfigAggregator\ConfigAggregator;
use Laminas\Diactoros\Response\EmptyResponse;
use Laminas\ServiceManager\Factory\InvokableFactory;
use Laminas\Stdlib\Glob;
use Monolog\Handler\RotatingFileHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use PDO;
use PHPUnit\Runner\Version;
@ -169,9 +169,10 @@ return [
'Shlink' => [
'handlers' => [
'shlink_handler' => [
'name' => StreamHandler::class,
'params' => [
'level' => Logger::DEBUG,
'filename' => 'data/log/api-tests/shlink_log.log',
'stream' => 'data/log/api-tests/shlink.log',
],
],
],
@ -179,10 +180,10 @@ return [
'Access' => [
'handlers' => [
'access_handler' => [
'name' => RotatingFileHandler::class,
'name' => StreamHandler::class,
'params' => [
'level' => Logger::DEBUG,
'filename' => 'data/log/api-tests/access_log.log',
'stream' => 'data/log/api-tests/access.log',
],
],
],