Warning: This function has been deprecated. Use error_log() instead.

logIO() WordPress Function

The logIO() function is used to log information about input/output operations on a WordPress site. This can be useful for debugging purposes or for tracking changes made to a site.

logIO( string $io, string $msg ) #

logIO() – Writes logging info to a file.


Description

Top ↑

See also


Top ↑

Parameters

$io

(string)(Required)Whether input or output

$msg

(string)(Required)Information describing logging reason.


Top ↑

Source

File: xmlrpc.php

function logIO( $io, $msg ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
	if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) {
		error_log( $io . ' - ' . $msg );
	}
}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.