AdguardTeam / AdguardTeam/Scriptlets
Replace "verbose" flag with an option to supply custom Logger implementation
Abierto
enhancement
- Lenguaje dominante
- JavaScript
- Estrellas
- 195
- Forks
- 33
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Currently, the scriptlets library allows supplying a `verbose` flag that controls whether the scriptlet should write verbose output to the console.
I suggest replacing that flag with the ability to supply custom `Logger` implementation and encapsulate this logic inside.
Something simple like that:
```
interface Logger {
debug()
info()
error()
}
```
This will also require changing the CoreLibs and the extensions content script accordingly.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.