AdguardTeam / AdguardTeam/Scriptlets
Replace "verbose" flag with an option to supply custom Logger implementation
Aperta
enhancement
- Lingua principale
- JavaScript
- Stelle
- 195
- Fork
- 33
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.