Skip to content
Extraits de code Groupes Projets
Valider ae213e43 rédigé par marcimat's avatar marcimat
Parcourir les fichiers

deprecate: Constantes de niveau de log _LOG_*

parent 464d1e38
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -106,11 +106,35 @@ if (!defined('_IS_CLI')) { ...@@ -106,11 +106,35 @@ if (!defined('_IS_CLI')) {
} }
// Definir les niveaux de log // Definir les niveaux de log
defined('_LOG_HS') || define('_LOG_HS', 0); if (!defined('_LOG_HS')) {
defined('_LOG_ALERTE_ROUGE') || define('_LOG_ALERTE_ROUGE', 1); /** @deprecated 5.0 Utiliser spip_logger()->emergency() */
defined('_LOG_CRITIQUE') || define('_LOG_CRITIQUE', 2); define('_LOG_HS', 0);
defined('_LOG_ERREUR') || define('_LOG_ERREUR', 3); }
defined('_LOG_AVERTISSEMENT') || define('_LOG_AVERTISSEMENT', 4); if (!defined('_LOG_ALERTE_ROUGE')) {
defined('_LOG_INFO_IMPORTANTE') || define('_LOG_INFO_IMPORTANTE', 5); /** @deprecated 5.0 Utiliser spip_logger()->alert() */
defined('_LOG_INFO') || define('_LOG_INFO', 6); define('_LOG_ALERTE_ROUGE', 1);
defined('_LOG_DEBUG') || define('_LOG_DEBUG', 7); }
if (!defined('_LOG_CRITIQUE')) {
/** @deprecated 5.0 Utiliser spip_logger()->critical() */
define('_LOG_CRITIQUE', 2);
}
if (!defined('_LOG_ERREUR')) {
/** @deprecated 5.0 Utiliser spip_logger()->error() */
define('_LOG_ERREUR', 3);
}
if (!defined('_LOG_AVERTISSEMENT')) {
/** @deprecated 5.0 Utiliser spip_logger()->warning() */
define('_LOG_AVERTISSEMENT', 4);
}
if (!defined('_LOG_INFO_IMPORTANTE')) {
/** @deprecated 5.0 Utiliser spip_logger()->notice() */
define('_LOG_INFO_IMPORTANTE', 5);
}
if (!defined('_LOG_INFO')) {
/** @deprecated 5.0 Utiliser spip_logger()->info() */
define('_LOG_INFO', 6);
}
if (!defined('_LOG_DEBUG')) {
/** @deprecated 5.0 Utiliser spip_logger()->debug() */
define('_LOG_DEBUG', 7);
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter