summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
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);
+ }
}
?>