logio

函数


logio ( $io, $msg )
参数
  • (string)
    $io
    Whether input or output
    Required:
  • (string)
    $msg
    Information describing logging reason.
    Required:
相关
  • error_log()
定义位置
  • xmlrpc.php
    , line 100
引入
弃用
3.4.0

logIO() – Writes logging info to a file.

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 );
	}
}