summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-10-22 01:40:27 +0100
committerJamie Matthews <[email protected]>2010-10-22 01:40:27 +0100
commit6b7fdc6e0d4516c81b2506a1b16a78a1e31ede3c (patch)
tree448ccc5e02d3e46e397b4a94a4ae14e4e8810d7c /README.markdown
parentf2883eb9f60c973b55a1b983d5adbca12f88055b (diff)
Add documentation for logging
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 07ff5a2..80a6ada 100644
--- a/README.markdown
+++ b/README.markdown
@@ -279,3 +279,11 @@ This setting is used to specify the primary key column name for each table separ
'person' => 'person_id',
'role' => 'role_id',
));
+
+#### Query logging ####
+
+Setting: `logging`
+
+Idiorm can log all queries it executes. To enable query logging, set the `logging` option to `true` (it is `false` by default).
+
+When query logging is enabled, you can use two static methods to access the log. `ORM::get_last_query()` returns the most recent query executed. `ORM::get_query_log()` returns an array of all queries executed.