|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-01 10:49 UTC] mike at blueroot dot net
The following code shows the error
print_r(array(
LOG_EMERG => 'emergency',
LOG_ALERT => 'alert',
LOG_CRIT => 'critical',
LOG_ERR => 'error',
LOG_WARNING => 'warning',
LOG_NOTICE => 'notice',
LOG_INFO => 'info',
LOG_DEBUG => 'debug'
));
outputs
Array ( [1] => critical [4] => error [5] => warning [6] => debug )
seems to work on *nix
The array above is used in PEAR::Log
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Do you mean that instead of the complete list: Array ( [0] => emergency [1] => alert [2] => critical [3] => error [4] => warning [5] => notice [6] => info [7] => debug ) You get under Windows only: Array ( [1] => critical [4] => error [5] => warning [6] => debug ) ? What does this output? <?php error_reporting(E_ALL); echo LOG_EMERG . " \n"; echo LOG_ALERT; ?> Tomas V.V.Cox