Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

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

Open ameshkov opened this issue 10 months ago • 0 comments

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.

ameshkov avatar Apr 09 '25 08:04 ameshkov