sergeesS
Denoβ€’2y agoβ€’
12 replies
sergees

Choose level for std logger

I have some loggers configured using the setup function from std/log. This way levels are hard-coded. I would like to be able to pass a --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?
Was this page helpful?