-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a logging framework like winston #1268
Comments
@KillianB This is really a good idea. If you have the ability to, we would love for you to contribute! |
@KilianB So what's the correct xml code for NY times? (I was wondering for a while why that was not working.) Also, please summarize:
|
Feel free to send a PR. As long as it's not a breaking change and doesn't require a massive load of dependencies. |
@E3V3A the news module requires a title and a publish date. The corresponding lines of code are here
Therefore, a valid xml entry has to have content for the title and publish date which the supplied example does not provide. It points towards the default nytimes homepage.
For example
Overall I think it's really important to allow developers to log messages in either modules and node_helper with the same syntax, which currently is not possible. I am not saying that winston is the go to framework but it's simply what I am currently using.
@nhubbard it's great to see a fellow first robotics enthusiast participating here. Due to me moving away from the US I sadly can not participate actively anymore but I have been present at last years kickoff together with the teams in grand rapids and if my memory serves correctly participated against your team a few times ;). Nevertheless if by any chance I get some spare time I am more than happy to look into this issue. |
FYI: #1331 |
Saw this issue and wanted to share: I created a module to implement |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The module development readme states:
Do we have any updates on weather this idea is going to be worked on in the future? I distributed my own modules via npm to import them in magic mirror and found winston to be of great help (take a look at named loggers). Sadly this currently only allows me to use my loggers in node_helper.js.
Using a logging framework would allow to turn off/on logging for specific modules while formatting the logger in a ways to exactly know which module send the message.
e.g. The rss feed of nytimes currently has a broken xml entry
resulting in https://github.com/MichMich/MagicMirror/blob/60b9a5b9dad36a7748a5d1bdb3b32c0c6384e4c0/modules/default/newsfeed/fetcher.js#L63-L68
being printed to console every time the newsfeed module tries to update it's feed. It would be really convenient to simply to turn of logging for this module.
The text was updated successfully, but these errors were encountered: