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

Introduce a thread-safe logging API for Rust #1138

Closed
cmnrd opened this issue May 3, 2022 · 3 comments
Closed

Introduce a thread-safe logging API for Rust #1138

cmnrd opened this issue May 3, 2022 · 3 comments
Assignees
Labels
enhancement Enhancement of existing feature rust Related to the Rust target

Comments

@cmnrd
Copy link
Collaborator

cmnrd commented May 3, 2022

In analogy to the C and C++ runtimes, the Rust runtime should provide a thread-safe logging API that is visible in reaction scope. This API should also respect the logging target property.

@cmnrd cmnrd added enhancement Enhancement of existing feature rust Related to the Rust target labels May 3, 2022
@jhaye
Copy link
Collaborator

jhaye commented May 3, 2022

I'm almost certain that the existing logging implementation is thread-safe. I'll check later today to confirm.

The reason why output for the test is garbled, is because it writes directly to STDOUT, just like the C++ test I copied it from.

@cmnrd
Copy link
Collaborator Author

cmnrd commented May 3, 2022

Ah, ok. If there is already a logging API, then the issue is of course obsolete ;)

@jhaye
Copy link
Collaborator

jhaye commented May 3, 2022

As I suspected, this is already the case.

@jhaye jhaye closed this as completed May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature rust Related to the Rust target
Projects
None yet
Development

No branches or pull requests

2 participants