Skip to content

Commit

Permalink
#27 rollback test.local.php.dist config
Browse files Browse the repository at this point in the history
  • Loading branch information
cheva committed Jun 13, 2018
1 parent 6f97595 commit 290f8ba
Showing 1 changed file with 60 additions and 77 deletions.
137 changes: 60 additions & 77 deletions config/autoload/logger.development.test.local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use Psr\Log\LoggerInterface;
use rollun\logger\Processor\IdMaker;
use rollun\logger\Processor\LifeCycleTokenInjector;
use Zend\ServiceManager\Factory\InvokableFactory;
use Zend\Log\Writer\Mock as WriterMock;
use Zend\Log\LoggerAbstractServiceFactory;
Expand Down Expand Up @@ -42,8 +41,7 @@ return [
],
'log_processors' => [
'factories' => [
IdMaker::class => InvokableFactory::class,
LifeCycleTokenInjector::class => \rollun\logger\Processor\Factory\LifeCycleTokenReferenceInjectorFactory::class,
IdMaker::class => InvokableFactory::class
],
],
'log_writers' => [
Expand All @@ -65,17 +63,72 @@ return [
],
'aliases' => [
'logDbAdapter' => AdapterInterface::class, //logWithDbWriter
\Psr\Log\LoggerInterface::class => 'logWithDbWriter',
],
],
'log' => [
'logWithDbWriter' => [
LoggerInterface::class => [
'processors' => [
[
'name' => IdMaker::class
],
],
'writers' => [
[
'name' => WriterMock::class,
// 'priority' => Logger::DEBUG,
// 'options' => [
// //'stream' => 'php://output',
// 'formatter' => [
// 'name' => 'MyFormatter',
// 'options' => []
// ],
// 'filters' => [
// [
// 'name' => 'MyFilter',
// ],
// ],
// ],
],
],
],
//
'logWithMockWriter' => [
'processors' => [
[
'name' => LifeCycleTokenInjector::class
'name' => IdMaker::class
],
],
'writers' => [
[
'name' => WriterMock::class,
],
],
],
//
'logWithFileWriter' => [
'processors' => [
[
'name' => IdMaker::class
],
],
'writers' => [
[
'name' => WriterStream::class,
'options' => [
'stream' => 'data/log/test-log.txt',
'formatter' => [
'name' => FormatterSimple::class,
'format' => '%id% %timestamp% %level% %message% %context%'
],
],
],
],
],
//
'logWithDbWriter' => [
'processors' => [
[
'name' => IdMaker::class
],
],
'writers' => [
Expand All @@ -91,81 +144,11 @@ return [
'level' => 'level',
'priority' => 'priority',
'context' => 'context',
'lifecycle_token' => 'lifecycle_token',
],
'formatter' => ContextToString::class
],
],
],
],
],
// LoggerInterface::class => [
// 'processors' => [
// [
// 'name' => IdMaker::class
// ],
// [
// 'name' => LifeCycleTokenInjector::class
// ],
// ],
// 'writers' => [
// [
// 'name' => WriterMock::class,
//// 'priority' => Logger::DEBUG,
//// 'options' => [
//// //'stream' => 'php://output',
//// 'formatter' => [
//// 'name' => 'MyFormatter',
//// 'options' => []
//// ],
//// 'filters' => [
//// [
//// 'name' => 'MyFilter',
//// ],
//// ],
//// ],
// ],
// ],
// ],
// //
// 'logWithMockWriter' => [
// 'processors' => [
// [
// 'name' => IdMaker::class
// ],
// [
// 'name' => LifeCycleTokenInjector::class
// ],
// ],
// 'writers' => [
// [
// 'name' => WriterMock::class,
// ],
// ],
// ],
// //
// 'logWithFileWriter' => [
// 'processors' => [
// [
// 'name' => IdMaker::class
// ],
// [
// 'name' => LifeCycleTokenInjector::class
// ],
// ],
// 'writers' => [
// [
// 'name' => WriterStream::class,
// 'options' => [
// 'stream' => 'log/test-log.txt',
// 'formatter' => [
// 'name' => FormatterSimple::class,
// 'format' => '%id% %timestamp% %level% %message% %context%'
// ],
// ],
// ],
// ],
// ],
// //
];

];

0 comments on commit 290f8ba

Please sign in to comment.