feat(nginx-log): NginxLogReader 增量读取 service(Base/App 双层,含轮转检测)

This commit is contained in:
augushong
2026-07-28 00:39:11 +08:00
parent 7d707c2150
commit 9fe55f81bf
2 changed files with 244 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace app\common\service;
use base\common\service\NginxLogReaderBase;
/**
* Nginx 日志增量读取 serviceApp 入口类).
*
* 框架内部所有调用走本类(依赖倒置):
* `new \app\common\service\NginxLogReader()` 或静态上下文,
* 业务侧如需定制读取逻辑,重写本类对应方法即可拦截。
*
* 全部逻辑由 NginxLogReaderBase 提供,本类默认仅继承不修改。
*/
class NginxLogReader extends NginxLogReaderBase
{
}