Skip to content

Does console.log have any form of log levels? #2833

Answered by willmcgugan
rlaphoenix asked this question in Q&A
Discussion options

You must be logged in to vote

console.log is a debug aid for those who like the print style of debugging. console.log will pretty print data and renderables. You don't typically leave it in your app.

Logging has an entirely different use case. Logging stays in your app. Logging works with strings only. You can configure logging to send logs to different, or even multiple, locations. You would typically configure logging to use RichHandler for debugging, and somewhere else in production.

Two different use cases, even if they render in a similar way.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rlaphoenix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants