summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2008-05-20 22:28:54 +0000
committertailor <cygnus@janrain.com>2008-05-20 22:28:54 +0000
commit8de1ebd2854a2379a55d326a35d41affb1ced11b (patch)
treeefa29344227d7591e710ac791e718f7c9d1d90ef /Auth
parenteb308f5d9a7c78157889e08c7e8e174276d2f9fa (diff)
downloadphp-openid-8de1ebd2854a2379a55d326a35d41affb1ced11b.zip
php-openid-8de1ebd2854a2379a55d326a35d41affb1ced11b.tar.gz
php-openid-8de1ebd2854a2379a55d326a35d41affb1ced11b.tar.bz2
[project @ Add Auth_OpenID::log()]
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/Auth/OpenID.php b/Auth/OpenID.php
index a1a0d43..ab0b621 100644
--- a/Auth/OpenID.php
+++ b/Auth/OpenID.php
@@ -573,5 +573,19 @@ class Auth_OpenID {
$dest[$k] = $v;
}
}
+
+ /**
+ * Wrap PHP's standard error_log functionality. Use this to
+ * perform all logging. It will interpolate any additional
+ * arguments into the format string before logging.
+ *
+ * @param string $format_string The sprintf format for the message
+ */
+ function log($format_string)
+ {
+ $args = func_get_args();
+ $message = call_user_func_array('sprintf', $args);
+ error_log($message);
+ }
}
?>