aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-04 11:18:59 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-04 11:18:59 +0000
commitbf5019635d558e6b27fec88b2b6d842cecd101ad (patch)
tree83574eb3ef7d1f141313857988fda4eeb06d219e /engine/lib
parent7a439878064085f6d2dd14e7f76fb61149928729 (diff)
downloadelgg-bf5019635d558e6b27fec88b2b6d842cecd101ad.tar.gz
elgg-bf5019635d558e6b27fec88b2b6d842cecd101ad.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Minor documentation git-svn-id: https://code.elgg.org/elgg/trunk@790 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/system_log.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php
index 9f640fcf3..4dd240d27 100644
--- a/engine/lib/system_log.php
+++ b/engine/lib/system_log.php
@@ -14,6 +14,12 @@
/**
* Interface that provides an interface which must be implemented by all objects wishing to be
* recorded in the system log (and by extension the river).
+ *
+ * This interface defines a set of methods that permit the system log functions to hook in and retrieve
+ * the necessary information and to identify what events can actually be logged.
+ *
+ * To have events involving your object to be logged simply implement this interface.
+ *
* @author Marcus Povey
*/
interface Loggable
@@ -85,7 +91,7 @@
function system_log($object, $event)
{
global $CONFIG;
- error_log("***************************** EVENT: $event : ".print_r($object,true));
+
if ($object instanceof Loggable)
{
// Has loggable interface, extract the necessary information and store