summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2014-04-20 15:34:59 +0100
committerSimon Holywell <[email protected]>2014-04-20 15:34:59 +0100
commitb8ce5f262874edeeb21115e6c37e5ff1568b8809 (patch)
tree6ca53865f01dfa472cf0d80d23270ed96ab4e2a8
parent90247cfdc2f60ff3e7e4ae56bff4b9eb04ce35da (diff)
Update the docs to reflect logger changes@
-rw-r--r--README.markdown2
-rw-r--r--docs/configuration.rst4
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