OpenSwoole\Util::log

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

Declaration

<?php OpenSwoole\Util::log()

Parameters

logLevel

Log level, OpenSwoole\Constant::LOG_DEBUG|OpenSwoole\Constant::LOG_TRACE|OpenSwoole\Constant::LOG_INFO|OpenSwoole\Constant::LOG_NOTICE|OpenSwoole\Constant::LOG_WARNING|OpenSwoole\Constant::LOG_ERROR|OpenSwoole\Constant::LOG_NONE

log

Log message.

Return

Description

Adds a log record.

Log levels in OpenSwoole

  • OpenSwoole\Constant::LOG_DEBUG
  • OpenSwoole\Constant::LOG_TRACE
  • OpenSwoole\Constant::LOG_INFO
  • OpenSwoole\Constant::LOG_NOTICE
  • OpenSwoole\Constant::LOG_WARNING
  • OpenSwoole\Constant::LOG_ERROR
  • OpenSwoole\Constant::LOG_NONE
Last updated on September 20, 2022