php发展

首页 » 常识 » 预防 » 202218thinkphp源码无差
TUhjnbcbe - 2025/7/27 15:45:00

thinkphp源码无差别阅读(十四)

framework阅读

think/initializer/BootService.php

初始化:init

think/initializer/Error.php

属性:app

注册异常处理:init

异常处理:appException

错误处理:appError

shutdown处理:appShutdown

是否致命:isFatal

获取异常处理器:getExceptionHandler

think/initializer/RegisterService.php

属性:services

初始化:init

think/log/Channel.php

属性:name、logger、event、lazy、log、close、allow

构造方法:__construct

关闭通道:close

清空日志:clear

记录日志:record

实时写入日志:write

获取日志信息:getLog

保存日志:save

记录日志:emergency

记录日志:alert

记录日志:critical

记录日志:error

记录日志:warning

记录日志:notice

记录日志:info

记录日志:debug

记录日志:log

动态调用:__call

think/log/ChannelSet.php

属性:log、channels

构造方法:__construct

动态调用:__call

think/log/driver/File.php

属性:config

构造方法:__construct

写入日志:save

写入日志:write

获取主日志文件名:getMasterLogFile

获取独立日志文件名:getApartLevelFile

检查日志大小并生成备份文件:checkLogSize

think/log/driver/Socket.php

属性:app、config、css、allowForceClientIds、clientArg

构造方法:__construct

写入日志:save

发送给指定客户端:sendToClient

检查客户端授权:check

获取客户端参数:getClientArg

发送:send

计划阅读

[]framework源码[]orm源码[]helper源码

1
查看完整版本: 202218thinkphp源码无差