SeasLog::getBasePath
(PECL seaslog >=1.0.0)
SeasLog::getBasePath — 获得 SeasLog 根目录
说明
使用函数 SeasLog::getBasePath() 可以获得在 php.ini(seaslog.ini) 中设置的seaslog.default_basepath。
如果使用函数 Seaslog::setBasePath(),将改变函数取值。
参数
此函数没有参数。
返回值
seaslog.default_basepath 作为字符串返回。
示例
示例 #1 SeasLog::getBasePath() 示例
<?php
var_dump(SeasLog::getBasePath());
?>
以上示例的输出类似于:
string(12) "/var/log/www"
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。