diff options
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | docs/configuration.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/README.markdown b/README.markdown index 230c5a6..7e87438 100644 --- a/README.markdown +++ b/README.markdown @@ -78,7 +78,7 @@ Changelog * Reduce the type casting on aggregate functions to allow characters [[herroffizier](https://github.com/herroffizier)] - [issue #150](https://github.com/j4mie/idiorm/issues/150) * Prevent invalid method calls from triggering infinite recursion [[michaelward82](https://github.com/michaelward82)] - [issue #152](https://github.com/j4mie/idiorm/issues/152) -* Add time to query logging [[AgelxNash](https://github.com/AgelxNash)] - [issue #180](https://github.com/j4mie/idiorm/issues/180) +* Add time to query logging - adds query time parameter to external logger callback function [[AgelxNash](https://github.com/AgelxNash)] - [issue #180](https://github.com/j4mie/idiorm/issues/180) * Changed database array access to ensure it's always properly setup [[falmp](https://github.com/falmp)] - [issue #159](https://github.com/j4mie/idiorm/issues/159) * Allow unsetting the db (ORM::set_db(null)) to make the test work again [[borrel](https://github.com/borrel)] - [issue #160](https://github.com/j4mie/idiorm/issues/160) * Add HHVM to travis-ci build matrix [[ptarjan](https://github.com/ptarjan)] - [issue #168](https://github.com/j4mie/idiorm/issues/168) diff --git a/docs/configuration.rst b/docs/configuration.rst index 08d11c2..2b74a88 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -261,8 +261,8 @@ allows you too whatever you would like from inside the callback function. .. code-block:: php <?php - ORM::configure('logger', function($log_string) { - echo $log_string; + ORM::configure('logger', function($log_string, $query_time) { + echo $log_string . ' in ' . $query_time; }); Query caching |