cobaia / monologdoctrine
Monolog meets Doctrine as SQL Logger
Installs: 4 403
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >= 5.3.0
- doctrine/orm: >= 2.3.0
- monolog/monolog: >= 1.2.1
This package is not auto-updated.
Last update: 2024-11-09 12:37:04 UTC
README
Doctrine Monolog, makes monolog meets Doctrine as a SQL Logger
Usage
$paths = array( 'entityFolder', ); $config = Setup::createAnnotationMetadataConfiguration($paths, true); $config->setSQLLogger(new MonologSQLLogger(null, null, __DIR__ . '/path/of/log/'));
By default the first two params can be null, or you can pass one instance of Monolog\Logger and Monolog\Handler\StreamHandler and the third param won't be necessary in this case.