Does console.log
have any form of log levels?
#2833
-
It seems to me as if I can inherit Console, override log, and super() call and override Am I to assume we are still meant to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
console.log
is a debug aid for those who like theprint
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.