函数原型
logIO( string $io, string $msg )
函数描述
logIO() – Writes logging info to a file.
是否弃用
Warning: This function has been deprecated. Use error_log() instead.
函数参数
-
$io
string
Required - Whether input or output
-
$msg
string
Required - Information describing logging reason.
函数返回值
无
函数位置
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 );
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |

