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

We should have the option to forward Core logging to an app-provided callback #498

Open
marktsuchida opened this issue Oct 9, 2024 · 0 comments

Comments

@marktsuchida
Copy link
Member

MMCore is a library, and libraries that do their own logging are generally problematic. When being used from an environment (Java, Python, other app framework) that has its own logging, the best architecture would be that MMCore plugs into the app's logging strategy.

Something like the ability to specify a callback as the (sole) destination for log messages. (It would also need to be synchronous; any log buffering should be up to the app.)

See: pymmcore-plus/pymmcore-plus#385

Probably not a high priority immediately but a possible feature.

Possible downside: if the app is in Python, this may mean acquiring the GIL on every log entry from devices. May have performance implications.

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

1 participant