Advertisements

logIO

Definition:
function logIO($io,$msg) {}

logIO() – Writes logging info to a file.

Parameters

  • string $io: Whether input or output
  • string $msg: Information describing logging reason.

Return values

returns:Always return true

Source code

function logIO($io,$msg) {

	global $xmlrpc_logging;

	if ($xmlrpc_logging) {

		$fp = fopen("../xmlrpc.log","a+");

		$date = gmdate("Y-m-d H:i:s ");

		$iot = ($io == "I") ? " Input: " : " Output: ";

		fwrite($fp, "\n\n".$date.$iot.$msg);

		fclose($fp);

	}

	return true;

}

2301

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: