SeasLog::setLogger
(PECL seaslog >=1.0.0)
SeasLog::setLogger — Set SeasLog logger name
説明
Use 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.
例
例1 SeasLog::setLogger() example
<?php
var_dump(SeasLog::setLogger('testModule/testLogger'));
?>
上の例の出力は、 たとえば以下のようになります。
bool(true)
参考
- SeasLog::getLastLogger() - Get SeasLog last logger path
- SeasLog::closeLoggerStream() - Manually release stream flow from logger
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google