Skip to content

Use the instatiation of the console object as a one place flag for turning off all console.log() #1047

Discussion options

You must be logged in to vote

Hi Dario,

I'd recommend you use the logging module disabling log output. You can use Rich logging handler to keep the styled output.

If you really can't live without disabling console.log, you could do this:

console.log = lambda *args, **kwargs: None

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dario-Mantegazza
Comment options

Answer selected by Dario-Mantegazza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants