logIO()WP 1.2.0

Deprecated from version 3.4.0. It is no longer supported and can be removed in future releases. Use error_log() instead.

logIO() - Writes logging info to a file.

No Hooks.

Return

null. Nothing (null).

Usage

logIO( $io, $msg );
$io(string) (required)
Whether input or output.
$msg(string) (required)
Information describing logging reason.

Notes

  • See: error_log()
  • Global. Int|true|false. $xmlrpc_logging Whether to enable XML-RPC logging.

Changelog

Since 1.2.0 Introduced.
Deprecated since 3.4.0 Use error_log()

logIO() code WP 6.5.2

function logIO( $io, $msg ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
	if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) {
		error_log( $io . ' - ' . $msg );
	}
}