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
I like the idea but it would require some low-level refactoring. I use winstonjs's label feature to generate those prefixes for logs. Might be easy to do by adding extra meta information to the log object but will need to either a) associate it with the label by id-mapping of some sort or b) make labels objects instead of strings
Then in console/stream transports we would be able to control the transform of the log object to the final string -- could add an additional transport specifically for web that transforms into html. I'm already doing this in a roundabout way for log level colors but its separate from winstonjs atm.
* Add options for /logs endpoint to stream objects instead of strings
* Always return log objects from /status endpoint -- fixes bug where all bots/subreddits got lines from logs that had newlines
* Return context-aware, formatted log lines to client to reduce line length IE if returning to botA -> subA then do not need to include labels for botA,subA #40
* Shorten timestamp to just time and wrap full timestamp in tooltip #40
* Emit log objects to client to reduce parsing complexity (don't have to regex for bot/subreddit name)
Instead of showing the full link at the end of the log maybe
[COM ID]
could link to it?The text was updated successfully, but these errors were encountered: