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

Multiprocessing Log Handler #2

Closed
mitsuhiko opened this issue Jul 27, 2010 · 2 comments
Closed

Multiprocessing Log Handler #2

mitsuhiko opened this issue Jul 27, 2010 · 2 comments

Comments

@mitsuhiko
Copy link
Collaborator

For multiprocessing a log handler is needed that sends data to another process.

This might help: http://stackoverflow.com/questions/641420/how-should-i-log-while-using-multiprocessing-in-python

@mitsuhiko
Copy link
Collaborator Author

That is implemented now but the problem is that the interface is stupid. The ZeroMQ implementation is much more useful there and also provides a way to handle background threads.

Because the multi processing handler is using a multiprocessing queue it should probably be moved to the queues module and gain a similar interface to the ZeroMQ one. Maybe with a bit of magic that parent and child automatically select the correct side (handler / subscriber) which is usually not necessary for the ZeroMQ setup.

@mitsuhiko
Copy link
Collaborator Author

Fixed. They share a common baseclass now and a compatible interface.

vals pushed a commit to vals/logbook that referenced this issue Oct 5, 2012
Super! Nice pull request and very well docstring-documented :D
This issue was closed.
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