Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<swoole_errnoswoole_event_add>
^Swoole FunctionsLast updated: Mon, 26 Oct 2026

swoole_error_log

(PECL swoole >= 4.5.8)

swoole_error_log — Output error messages to the log

Description

function swoole_error_log(int $level, string $msg): void

Output error messages to the log.

Parameters

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.

Return Values

No value is returned.


<swoole_errnoswoole_event_add>
^Swoole FunctionsLast updated: Mon, 26 Oct 2026