(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"