« SeasLog::flushBuffer
SeasLog::getBuffer »

SeasLog::getBasePath

(PECL seaslog >=1.0.0)

SeasLog::getBasePath — Get SeasLog base path.

説明

public static function Seaslog::getBasePath(): string

Use the Function SeasLog::getBasePath() will get the value of seaslog.default_basepath what configured in php.ini(seaslog.ini).

If you use Seaslog::setBasePath(), will change the result.

パラメータ

この関数にはパラメータはありません。

戻り値

Return seaslog.default_basepath as string.

例

例1 SeasLog::getBasePath() example

<?php

var_dump(SeasLog::getBasePath());

?>

上の例の出力は、 たとえば以下のようになります。

string(12) "/var/log/www"
関連キーワード:
SeasLog   getBasePath   seaslog   base   path   Seaslog   default   basepath   flushBuffer   getBuffer   static   what   configured   setBasePath   change   Return   example   dump
関連する関数・ページ:
seaslog.setbasepath   function.seaslog-get-version   seaslog.construct   seaslog.destruct   seaslog.getbuffer   seaslog.getbufferenabled