How do I turn off Mendix client-side browser logs in production?

0
In the browser console I see a lot of Mendix log output like [Client], [Network], [Startup], etc. Is this controlled by a specific log level setting in the deployment (Environment → Log levels), or somewhere else? I’m specifically asking about silencing these logs in the browser console, not the server logs, and only for the production environment. I’d like to keep errors visible but suppress everything below that. Apologies if this is an RTFM question but I’ve searched quite a bit but couldn’t find a clear answer.
asked
2 answers
1

Hi Bela Vizy

 

This is something very interesting so I tried with my application and it works with just a simple script.

 

<script>

  if (window.console) {

    console.debug = function(){};  // suppress debug

    console.info  = function(){};  // suppress info

    console.warn  = function(){};  // optional: keep if you still want warnings

    // console.error stays intact

  }

</script>

 

Add this in your index.html file and your dev cocnsole will stop the logs.

I hope this helps you!!

answered
-1

Don't think there is an option for that. THe only thing I can think of is using the custom levels in the developer console of chrome. That can filter out the info messages for example.

image.png

answered