From bf5019635d558e6b27fec88b2b6d842cecd101ad Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 4 Jun 2008 11:18:59 +0000 Subject: Marcus Povey * Minor documentation git-svn-id: https://code.elgg.org/elgg/trunk@790 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/system_log.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engine') 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 -- cgit v1.2.3