php-doc-en/reference/swoole/functions/swoole-error-log.xml
sy-records f03dfae1dc
Add swoole_error_log for swoole and add respective constants
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-31 13:29:14 +02:00

77 lines
2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.swoole-error-log" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>swoole_error_log</refname>
<refpurpose>Output error messages to the log</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>void</type><methodname>swoole_error_log</methodname>
<methodparam><type>int</type><parameter>level</parameter></methodparam>
<methodparam><type>string</type><parameter>msg</parameter></methodparam>
</methodsynopsis>
<para>
Output error messages to the log.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>level</parameter></term>
<listitem>
<para>
Log Level, constants can be used: <constant>SWOOLE_LOG_DEBUG</constant>,
<constant>SWOOLE_LOG_TRACE</constant>,
<constant>SWOOLE_LOG_INFO</constant>,
<constant>SWOOLE_LOG_NOTICE</constant>,
<constant>SWOOLE_LOG_WARNING</constant>,
<constant>SWOOLE_LOG_ERROR</constant>,
<constant>SWOOLE_LOG_NONE</constant>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>msg</parameter></term>
<listitem>
<para>
Message content to be written to the log.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->