\AsyncLogger

记录日志

Summary

Methods
Properties
Constants
log()
No public properties found
TYPE_RUNNING
TYPE_STOPPED
TYPE_COMPLETED
TYPE_ERROR
LOG_DIR
No protected methods found
$logFile
N/A
No private methods found
No private properties found
N/A

Constants

TYPE_RUNNING

TYPE_RUNNING

TYPE_STOPPED

TYPE_STOPPED

TYPE_COMPLETED

TYPE_COMPLETED

TYPE_ERROR

TYPE_ERROR

LOG_DIR

LOG_DIR

Properties

$logFile

$logFile : string|null

Type

string|null — 日志文件,格式为2019-08-03.log

Methods

log()

log(string  $type, string  $msg) : void

写入日志文件

Parameters

string $type
string $msg

Throws

\Async\FileException