Skip to content
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

roslibjs logging functions log to rosout.log instead of dedicated logfiles #330

Closed
joshua-glazer opened this issue Mar 4, 2020 · 0 comments

Comments

@joshua-glazer
Copy link
Member

joshua-glazer commented Mar 4, 2020

Currently, logErr(), logInfo() etc result in log files generated in rosout.log. Ideally, however, each GUI webpage should generate its own logfile. My custom js log functions work by publishing to /rosout, but there may be some other hidden mechanisms in rospy behind the scenes that activate before publishing to /rosout that hold the answer.

BONUS (or future issue): For multiple operators, have some way of distinguishing logs generated from each specific operator's laptop/gui. Not sure where in the log message this would go... I've seen sometimes logs will have a "[Client 0]" show up in the messages, maybe it's related.

Some directions to investigate:

  • Check out how the logging functions are implemented in rospy or roscpp. This is probably the most direct approach
  • The message type used by /rosout has an entry for listing topic names. Not sure what it's used for.
  • A small amount of digging has shown that the rosbridge_websocket node is responsible for all topics published by the GUI. Maybe there's something in there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants