Add the "alert" logging level
- Langage dominant
- Go
- Étoiles
- 6.1k
- Forks
- 327
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Back when I started developing maddy, I did not see the value in introducing a big number of logging levels. The ones currently defined are basically "info" and "debug" with latter being hidden by default.
I propose to introduce the logging level to indicate messages that require immediate action by the server administrator, such as errors that prevent security mechanisms from working correctly and may cause security downgrade.
This level can be handled differently by the logging subsystem used (e.g. journalctl utility can highlight such messages with a bright color to make them more visible). A monitoring system deployed can email the administrator and so on.
On other levels that someone might think are worth introducing:
- Error
Non-exceptional errors happen all day during the normal mail server operation (ranging from bots hitting security policies to buggy recipient DNS servers). They are generally not worth being handled specially.
- Notice, Warning
Should be "Alert" if it is really important or "Info" if server can figure it out without the human intervention.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
L’issue ne mentionne aucun fichier, test ou point d’entrée. Commencez par localiser les définitions existantes des niveaux info et debug et suivre le sous-système de logging, en particulier les messages liés aux mécanismes de sécurité. Le travail est terminé lorsqu’un niveau d’alerte est disponible pour les messages nécessitant une action de l’administrateur et qu’il peut être distingué par les consommateurs de logging.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- go
- Domaine
- observability-sre
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100