php8.5
Home/ Manual/ seaslog / seaslog/ SeasLog::getLastLogger

SeasLog::getLastLogger

PHP function Edit on GitHub ✎

(PECL seaslog >=1.0.0)

Get SeasLog last logger path

Description

SeasLog::getLastLogger(): string

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

Parameters Parameters

Return Values

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

Examples

SeasLog::getLastLogger() example

php
<?php

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

The above example will output something similar to:

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

See Also

  • SeasLog::setLogger

Source: reference/seaslog/seaslog/getlastlogger.xml · from the official PHP manual (php/doc-en)