AdguardTeam / AdguardTeam/AdGuardHome

Improve debug log

Abierto
#3,391 1 comentario 1 reacción 0 asignados Ver en GitHub
enhancement external libs
Lenguaje dominante
TypeScript
Estrellas
36.9k
Forks
2.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Problem Description
Debugging issues is really hard. Enabling debug is useless because of the sheer amount and uploading it for AGH team to inspect involves potential privacy issues.

### Proposed Solution
It would be great to separate out logging for individual components. Something as simple prefixing log entries with the component name would awesome as that would allow users to grep on specific component so that logs for only those components can be uploaded. This would also aid you in debugging as it allows you to grep on specific components should a user not filter it themselves.

### Alternatives Considered
You could go a step further and allow different log levels per component, but this sounds like it might be a little more work.

### Additional Information
It looks like you are using your own in-house built logging library so not sure what would be involved to do so, but if you were using an OSS library such as logrus, you could potential use fields or the like.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.