AdguardTeam / AdguardTeam/Scriptlets

Replace "verbose" flag with an option to supply custom Logger implementation

Offen
#492 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
JavaScript
Sterne
195
Forks
33
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.