CakeFest 2024: The Official CakePHP Conference

SeasLog::getLastLogger

(PECL seaslog >=1.0.0)

SeasLog::getLastLoggerGet SeasLog last logger path

Descrição

public static SeasLog::getLastLogger(): string

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

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

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

Exemplos

Exemplo #1 SeasLog::getLastLogger() example

<?php

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

O exemplo acima produzirá algo semelhante a:

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

Veja Também

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top