Doctrine conf > add logger for debug

pull/1/head
Thomas Metois 2017-02-01 11:09:21 +01:00
parent 187190efc0
commit f711cc5077
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ return array(
'service_manager' => array( 'service_manager' => array(
'factories' => array( 'factories' => array(
'doctrine.cache.mycache' => 'MonarcCore\Service\DoctrineCacheServiceFactory', 'doctrine.cache.mycache' => 'MonarcCore\Service\DoctrineCacheServiceFactory',
'doctrine.monarc_logger' => 'MonarcCore\Service\DoctrineLoggerFactory',
), ),
), ),
'doctrine' => array( 'doctrine' => array(
@ -93,6 +94,7 @@ return array(
'string_functions' => array(), 'string_functions' => array(),
'numeric_functions' => array(), 'numeric_functions' => array(),
'second_level_cache' => array(), 'second_level_cache' => array(),
'sql_logger' => 'doctrine.monarc_logger',
), ),
'orm_cli' => array( 'orm_cli' => array(
'metadata_cache' => 'mycache', 'metadata_cache' => 'mycache',
@ -107,6 +109,7 @@ return array(
'string_functions' => array(), 'string_functions' => array(),
'numeric_functions' => array(), 'numeric_functions' => array(),
'second_level_cache' => array(), 'second_level_cache' => array(),
'sql_logger' => 'doctrine.monarc_logger',
), ),
), ),
), ),