AdguardTeam / AdguardTeam/Scriptlets
Replace "verbose" flag with an option to supply custom Logger implementation
Aberta
enhancement
- Linguagem predominante
- JavaScript
- Estrelas
- 195
- Forks
- 33
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.