« SeasLog::getDatetimeFormat
SeasLog::getRequestID »

SeasLog::getLastLogger

(PECL seaslog >=1.0.0)

SeasLog::getLastLogger — Get SeasLog last logger path

説明

public static function SeasLog::getLastLogger(): string

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

パラメータ

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

戻り値

Use the Function SeasLog::setLogger() will change the value of function SeasLog::getLastLogger().

例

例1 SeasLog::getLastLogger() example

<?php

var_dump(SeasLog::getLastLogger());
SeasLog::setLogger('theNewLogger');
var_dump(SeasLog::getLastLogger());
?>

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

string(7) "default"
string(12) "theNewLogger"

参考

関連キーワード:
SeasLog   getLastLogger   logger   last   path   seaslog   setLogger   default   dump   theNewLogger   getDatetimeFormat   getRequestID   static   what   configured   change   example   参考
関連する関数・ページ:
seaslog.setlogger   seaslog.construct   seaslog.destruct   seaslog.getbasepath   seaslog.setbasepath   function.seaslog-get-version