diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index 6032354d0b4d2bdcdbd45cd79600a312d21e6253..31a73de19f6840f9d198864f7144d6ee74a3ccc8 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -228,16 +228,27 @@ function pipeline($action, $val=null) { * * Le niveau de log par défaut est la valeur de la constante `_LOG_INFO` * + * Les différents niveaux possibles sont : + * + * - `_LOG_HS` : écrira 'HS' au début de la ligne logguée + * - `_LOG_ALERTE_ROUGE` : 'ALERTE' + * - `_LOG_CRITIQUE` : 'CRITIQUE' + * - `_LOG_ERREUR` : 'ERREUR' + * - `_LOG_AVERTISSEMENT` : 'WARNING' + * - `_LOG_INFO_IMPORTANTE` : '!INFO' + * - `_LOG_INFO` : 'info' + * - `_LOG_DEBUG` : 'debug' + * * @example * ``` * spip_log($message) - * spip_log($message,'recherche') - * spip_log($message,_LOG_DEBUG) - * spip_log($message,'recherche.'._LOG_DEBUG) + * spip_log($message, 'recherche') + * spip_log($message, _LOG_DEBUG) + * spip_log($message, 'recherche.'._LOG_DEBUG) * ``` * * @api - * @link http://doc.spip.org/@spip_log + * @link http://programmer.spip.net/spip_log * @uses inc_log_dist() * * @param string $message @@ -248,7 +259,7 @@ function pipeline($action, $val=null) { * - string indique le type de log * - `string.int` indique les 2 éléments. * Cette dernière notation est controversée mais le 3ème - * paramètre est planté pour cause de compat ascendante. + * paramètre est planté pour cause de compatibilité ascendante. */ function spip_log($message=NULL, $name=NULL) { static $pre = array();