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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info logging via callback to C api. #12537

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jevolk
Copy link
Contributor

@jevolk jevolk commented Apr 15, 2024

I'd like to get this in so the Rust folks can integrate with their splendid logging/tracing frameworks; will be hugely appreciated. 馃檹馃徎

Summary:
The infolog capabilities for C embeddings are quite spartan. LOG files were generated involuntarily until redirection to stderr was added by #12262; still insufficient for apps which cannot tolerate pollution of their stdio and tend to have existing logging frameworks to tie into for that.

Adds a very minimal derive of Logger around a C callback, written in the spirit, useful for FFI interfaces from other languages to integrate infolog.

Summary:
Adds a very minimal derive of Logger around a C callback useful for FFI
interfaces from other languages to integrate infolog.

The infolog capabilities for C embeddings are quite spartan. LOG files were
generated involuntarily until redirection to stderr was added by facebook#12262;
still insufficient for apps which cannot tolerate pollution of their stdio
and tend to have existing logging frameworks to tie into for that.

Signed-off-by: Jason Volk <jason@zemos.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants