index.php入口文件定义一个常量LOG_PATH,log.php配置文件的path定义为常量LOG_PATH。
index.php
// 日志目录 define('LOG_PATH',__DIR__.'/../log/');
log.php
return [ // 日志保存目录 'path'