Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Debug mode - Filter type of logs printed to the console

Avatar

Avatar
Shape 100
MVP
AndrewWathen
MVP

Likes

569 likes

Total Posts

317 posts

Correct Reply

15 solutions
Top badges earned
Shape 100
Bedrock
Springboard
Seeker
Contributor
View profile

Avatar
Shape 100
MVP
AndrewWathen
MVP

Likes

569 likes

Total Posts

317 posts

Correct Reply

15 solutions
Top badges earned
Shape 100
Bedrock
Springboard
Seeker
Contributor
View profile
AndrewWathen
MVP

21-05-2021

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

_satellite.logger _satellite.setDebug console console.log Logging logs
2 Comments

Avatar

Avatar
Springboard
MVP
StewSchilling
MVP

Likes

339 likes

Total Posts

276 posts

Correct Reply

85 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile

Avatar
Springboard
MVP
StewSchilling
MVP

Likes

339 likes

Total Posts

276 posts

Correct Reply

85 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile
StewSchilling
MVP

21-05-2021

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

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

Avatar

Avatar
Shape 100
MVP
AndrewWathen
MVP

Likes

569 likes

Total Posts

317 posts

Correct Reply

15 solutions
Top badges earned
Shape 100
Bedrock
Springboard
Seeker
Contributor
View profile

Avatar
Shape 100
MVP
AndrewWathen
MVP

Likes

569 likes

Total Posts

317 posts

Correct Reply

15 solutions
Top badges earned
Shape 100
Bedrock
Springboard
Seeker
Contributor
View profile
AndrewWathen
MVP

24-05-2021

@StewSchilling 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.