Created
May 7, 2013 15:57
-
-
Save wms/5533740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use lithium\analysis\Logger; | |
use lithium\data\Connections; | |
Logger::config([ | |
'default' => [ | |
'adapter' => 'File', | |
'file' => function() { return "combined.log"; }, | |
'format' => "{:timestamp} {:priority}\t{:message}\n" | |
] | |
]); | |
Connections::get('default')->applyFilter('_execute', function($self, $params, $chain) { | |
Logger::debug($params['sql']); | |
return $chain->next($self, $params, $chain); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment