PHP - Manual: swoole_error_log
2024-11-15
(PECL swoole >= 4.5.8)
swoole_error_log — Output error messages to the log
$level
, string $msg
): voidOutput error messages to the log.
level
Log Level, constants can be used: SWOOLE_LOG_DEBUG
,
SWOOLE_LOG_TRACE
,
SWOOLE_LOG_INFO
,
SWOOLE_LOG_NOTICE
,
SWOOLE_LOG_WARNING
,
SWOOLE_LOG_ERROR
,
SWOOLE_LOG_NONE
msg
Message content to be written to the log.
没有返回值。
官方地址:https://www.php.net/manual/en/function.swoole-error-log.php