SeasLog::setLogger
(PECL seaslog >=1.0.0)
SeasLog::setLogger — Set SeasLog logger name
Descrição
Use the Function SeasLog::setLogger() will change the value of function SeasLog::getLastLogger(). Than's mean, SeasLog will record loginfo into the logger directory.
Parâmetros
logger
-
Logger name.
Valor Retornado
Return TRUE on created logger disectory success, FALSE on failure.
Exemplos
Example #1 SeasLog::setLogger() example
<?php
var_dump(SeasLog::setLogger('testModule/testLogger'));
?>
O exemplo acima produzirá algo semelhante a:
bool(true)
Veja Também
- SeasLog::getLastLogger() - Get SeasLog last logger path
- SeasLog::closeLoggerStream() - Manually release stream flow from logger