DenoDDeno
Powered by
sergeesS
Denoβ€’3y agoβ€’
12 replies
sergees

Choose level for std logger

I have some loggers configured using the
setup
setup
function from
std/log
std/log
. This way levels are hard-coded. I would like to be able to pass a
--debug
--debug
option to my script to activate the DEBUG level, otherwise use INFO and above.

Is it possible to achieve this using std/log? If not, what are other libs you can recommend instead?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Stubbing @std/x
thorocTthoroc / help
13mo ago
@std/expect `anyOf` equivalent?
GiraffeGGiraffe / help
17mo ago
Feature Suggestion: Dark Mode for `std` library Docs.
BairdyBBairdy / help
4y ago