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

Add rerun --save: stream incoming log stream to an rrd file #1662

Merged
merged 3 commits into from Mar 22, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented Mar 21, 2023

By popular request!

This allows you to save incoming log messages directly to disk with rerun --save foo.rrd.

This can be useful when you have multiple processes logging to the same rerun server, and you want to save it all to an .rrd file.

Testing

In one terminal:

❯ RUST_LOG=debug cargo r -p rerun -- --save test.rrd
[2023-03-21T17:49:09Z INFO  re_sdk_comms::server] Hosting a SDK server over TCP at 0.0.0.0:9876. Connect with the Rerun logging SDK.
[2023-03-21T17:49:09Z WARN  rerun::run] Overwriting existing file at "test.rrd"
[2023-03-21T17:49:09Z INFO  rerun::run] Saving incoming log stream to "test.rrd". Abort with Ctrl-C.
[2023-03-21T17:49:16Z INFO  re_sdk_comms::server] New SDK client connected: 127.0.0.1:55903
[2023-03-21T17:49:17Z DEBUG re_sdk_comms::server] Client sent goodbye message.
^C[2023-03-21T17:49:23Z DEBUG rerun::run] Ctrl-C detected, shutting down.
[2023-03-21T17:49:23Z INFO  rerun::run] Log stream disconnected, stopping.
[2023-03-21T17:49:23Z INFO  rerun::run] File saved to "test.rrd"

In another terminal

cargo r -p objectron -- --connect

Checklist

@emilk emilk added the enhancement New feature or request label Mar 21, 2023
@emilk
Copy link
Member Author

emilk commented Mar 21, 2023

Not sure what to label this… we may need a rerun CLI label

@emilk emilk merged commit c1cc4c9 into main Mar 22, 2023
@emilk emilk deleted the emilk/stream-to-file branch March 22, 2023 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants