**SPIP**
# Article proposé
L’article "**\_LOG\_FILTRE_GRAVITE**
(https://www.spip.net/ecrire/?exec=article&id_article=6574)" est proposé
à la publication depuis le jeudi 28 mai 2020.
* * *
## \_LOG\_FILTRE_GRAVITE
jeudi 28 mai 2020 , par [jack](.././?page=auteur&id_auteur=593&)
This constant defines the maximum level of severity of the information to
be recorded in the SPIP log files.
By default only error logs are recorded to reduce verbosity. For debugging
purposes, it may be necessary during the development phase to add in your
file `config/my_options.php` (see the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4909)).
// define the maximum level of verbosity of the logs
define
(http://www.php.net/define)
(
'_LOG_FILTRE_GRAVITE'
,
8
)
;
The different values of this constant are (from least verbose to most
verbose) :
* 0 (*\_LOG\_HS*)
* 1 (*\_LOG\_ALERTE_ROUGE*)
* 2 (*\_LOG\_CRITIQUE*)
* 3 (*\_LOG\_ERREUR*)
* 4 (*\_LOG\_AVERTISSEMENT*)
* 5 (*\_LOG\_INFO_IMPORTANTE*) (par défaut)
* 6 (*\_LOG\_INFO*)
* 7 (*\_LOG\_DEBUG*)
## See also
* The function spip_log() (https://programmer.spip.net/spip_log)
**P.-S.**
Note : historical writing `spip_log('message');` without level precision is
still supported but deprecated.
— Envoyé par SPIP (https://www.spip.net/)
