Debug mode - Filter type of logs printed to the console | Community
Skip to main content
Andrew_Wathen_
Community Advisor
Community Advisor
May 21, 2021
New

Debug mode - Filter type of logs printed to the console

  • May 21, 2021
  • 2 replies
  • 1002 views

Description -

Currently when debugging is enabled all events are logged to the console which makes it very hard to see what is going on.   It would be great if there was a way to select which types of events were written to the console.  Often I just want to see the custom logs generated where I've used the _satellite.logger function in custom code. 

Why is this feature important to you -

It would make debugging easier.   At the moment I find myself often resorting to using console.log because it is easier to see what is happening but this has it's own drawbacks


How would you like the feature to work -

Maybe the _satellite.setDebug() function could be altered to take an additional optional parameter listing the categories of log that you want to write to the console?

Current Behaviour -

Everything gets written to the console

2 replies

Stewart_Schilling
Community Advisor
Community Advisor
May 21, 2021

Are you not able to accomplish what you need with console filtering?  

https://developer.chrome.com/docs/devtools/console/reference/#filter

Andrew_Wathen_
Community Advisor
Community Advisor
May 24, 2021

@stewart_schilling It's a fair point, and one I considered 🙂

 

But I don't think I can get the configuration I wanted this way.  I want everything to appear in the console that would normally appear, plus just the custom logs I've set in code using the _satellite.logger function (i.e. none of the other stuff that launch outputs by default when you enable debugging)  - Launch seems to split out so much stuff when we have debugging is enabled that it just swamps the console.