diff options
author | tailor <cygnus@janrain.com> | 2008-05-20 22:28:54 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2008-05-20 22:28:54 +0000 |
commit | 8de1ebd2854a2379a55d326a35d41affb1ced11b (patch) | |
tree | efa29344227d7591e710ac791e718f7c9d1d90ef /Auth | |
parent | eb308f5d9a7c78157889e08c7e8e174276d2f9fa (diff) | |
download | php-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.php | 14 |
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); + } } ?> |