Results of 1 - 2 of about 2 for testModule (0.001 sec.)
- SeasLog::setLogger — Set SeasLog logger name | PHP 8.3 11228
- SeasLog::setLogger (PECL seaslog >=1.0.0) SeasLog::setLogger — Set SeasLog logger name 説明 public static function SeasLog::setLogger ( string $logger ): bool Use the Function SeasLog::setLogger() will change the value of function SeasLog::
... d logger disectory success, FALSE on failure. 例 例1 SeasLog::setLogger() example <?php var_dump ( SeasLog :: setLogger ( 'testModule/testLogger' )); ?> 上の例の出力は、 たとえば以下のようになります。 bool(true) 参考 SeasLog::getLastLogger() - Get SeasLog ...
-
https://man.mtool.work/php/8.3/seaslog.setlogger.html
- 例 | PHP 8.3 7485
- 例 例1 Get and set base path <?php $basePath1 = SeasLog :: getBasePath (); SeasLog :: setBasePath ( '/log/base_test' ); $basePath2 = SeasLog :: getBasePath (); var_dump ( $basePath1 , $basePath2 ); ?> 上の例の出力は、 たとえば以下のようにな
... ring(14) "/log/base_test" 例2 Get and set logger <?php $lastLogger1 = SeasLog :: getLastLogger (); SeasLog :: setLogger ( 'testModule/app1' ); $lastLogger2 = SeasLog :: getLastLogger (); var_dump ( $lastLogger1 , $lastLogger2 ); ?> 上の例の出力は、 たとえば ... 以下のようになります。 string(7) "default" string(15) "testModule/app1" 例3 Fast write log <?php SeasLog :: log ( SEASLOG_ERROR , 'this is a error test by ::log' ); SeasLog :: debug ( 'thi ...
-
https://man.mtool.work/php/8.3/seaslog.examples.html
PREV
1
NEXT