You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we inherit everything from Module and find a way to derive name in JS (full path to current file), it will be easy, just like in Python. It's pretty easy to migrate what we have now because we don't have THAT many logging statements.
Be careful that logging should be the first component of the system initialized and it shouldn't have any other dependencies. I'm not sure however if it's worth doing right now :(
It'd be a nice to have, but I don't think there's an easy way to do it. You'd have to trace back where logger.error is called from. And I still don't think we even have consistent logging in JS. Thrown exceptions could be caught separately though, with some conditional logic in module wrapping https://github.com/uberVU/thehole/blob/master/app/core/module.coffee#L53-L74
The text was updated successfully, but these errors were encountered:
@aismail
@skidding
The text was updated successfully, but these errors were encountered: