[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 --TEST-- 2 Log: Priorities 3 --FILE-- 4 <?php 5 6 require_once 'Log.php'; 7 8 $conf = array('lineFormat' => '[%3$s] %4$s'); 9 $logger = &Log::singleton('console', '', 'ident', $conf); 10 11 /* Log at the default PEAR_LOG_INFO level. */ 12 $logger->log('Log message'); 13 14 /* Set the default priority to PEAR_LOG_DEBUG. */ 15 $logger->setPriority(PEAR_LOG_DEBUG); 16 $logger->log('Log message'); 17 18 /* Verify that the getPriority() method also things we're at PEAR_LOG_DEBUG. */ 19 echo $logger->priorityToString($logger->getPriority()) . "\n"; 20 21 --EXPECT-- 22 [info] Log message 23 [debug] Log message 24 debug
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |