foxcpp / foxcpp/maddy

Add the "alert" logging level

Abierto
#182 0 comentarios 0 reacciones 0 asignados Ver en GitHub
new feature
Lenguaje dominante
Go
Estrellas
6.1k
Forks
327
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

El issue no menciona archivos, pruebas ni puntos de entrada. Empieza localizando las definiciones existentes de los niveles info y debug y siguiendo el subsistema de logging, especialmente los mensajes relacionados con mecanismos de seguridad. Se considera terminado cuando haya disponible un nivel de alerta para los mensajes que requieren una acción del administrador y los consumidores de logging puedan distinguirlo.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
go
Área
observability-sre
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.