array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.swoole-error-log.php', 1 => 'swoole_error_log', 2 => 'Output error messages to the log', ), 'up' => array ( 0 => 'ref.swoole-funcs.php', 1 => 'Swoole Funktionen', ), 'prev' => array ( 0 => 'function.swoole-errno.php', 1 => 'swoole_errno', ), 'next' => array ( 0 => 'function.swoole-event-add.php', 1 => 'swoole_event_add', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/functions/swoole-error-log.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

swoole_error_log

(PECL swoole >= 4.5.8)

swoole_error_logOutput error messages to the log

Beschreibung

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

Output error messages to the log.

Parameter-Liste

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.

Rückgabewerte

Es wird kein Wert zurückgegeben.