函数名:SeasLog::setBasePath()
适用版本:SeasLog 1.9.0 及以上版本
函数说明:该函数用于设置SeasLog日志文件的基本路径。
用法:
bool SeasLog::setBasePath(string $basePath)
参数:
返回值:
示例:
// 设置日志文件的基本路径
SeasLog::setBasePath('/path/to/logs');
// 获取当前日志文件的基本路径
$basePath = SeasLog::getBasePath();
echo $basePath; // 输出:/path/to/logs
注意事项: