Skip to content

gou1/MonologDoctrine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DoctrineMonolog

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.

License

About

Monolog meets Doctrine as a SQL Logger

Resources

Stars

Watchers

Forks

Packages

No packages published