-
Notifications
You must be signed in to change notification settings - Fork 914
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
roslaunch option to log to both: screen and logfile #418
Conversation
…creen and file. it uses subprocess.pipe and threading. Includes corrections from PR ros#413
…ite out and err to same logfile
Can one of the admins verify this patch? |
@@ -434,7 +434,7 @@ def __init__(self, package, node_type, name=None, namespace='/', \ | |||
:param remap_args: list of [(from, to)] remapping arguments, ``[(str, str)]`` | |||
:param env_args: list of [(key, value)] of | |||
additional environment vars to set for node, ``[(str, str)]`` | |||
:param output: where to log output to, either Node, 'screen' or 'log', ``str`` | |||
:param output: where to log output to, 'screen', 'log' or both, ``str`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'both' should be quoted as the other two options.
4533777
to
ebd9e49
Compare
It would also be nice to have a |
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
I will close this as a duplicate of #551 since that PR contains an update variation of this patch. |
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
…he PR ros#418 submitted by eggerdo. Now, if "output" attribute is "both", a file will be created, and output will be displayed on screen. Created file can be a Rotating file thanks to the previous commit.
Replaces PR #413
For output = both
-> stdout will be written to screen and logfileout
-> stderr will be redirected to stdout, this will keep temporal order between out and err intact on screen and log file, but err messages will be written with out messages to logfileout.
-> no stderr log file
For output = log
-> stdout will be written to logfileout
-> stderr will be written to screen and logfileerr
-> temporal order not intact, but doesn't matter because files are separated and only err messages are shown on screen
For output = screen
-> stays as is, no multiplexing is needed