(PECL seaslog >=1.0.0)
SeasLog::setLogger — Set SeasLog logger name
$logger
) : boolUse the Function SeasLog::setLogger() will change the value of function SeasLog::getLastLogger(). Than's mean, SeasLog will record loginfo into the logger directory.
logger
Logger name.
Return TRUE on created logger disectory success, FALSE on failure.
Örnek 1 SeasLog::setLogger() example
<?php
var_dump(SeasLog::setLogger('testModule/testLogger'));
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
bool(true)