Parent API¶
The LogListener class is the primary entry point in the parent process.
Log Listener¶
- class manylog.LogListener(ctx=None)¶
Class that listens for logging messages and reinjects them in the parent.
The listener is not listening for messages until
start()is called. It must be properly shut down withclose(). The log listener can be used as a context manager, in which case start and close will be automatically called. If the process terminates without calling close, log messages may be lost.- Parameters:
ctx (Optional[x.Context]) – A ZeroMQ context to use.
- start()¶
Start the log listener.
- close()¶
Shut down the log listener.
Register a progress bar for sharing with child processes.
- Parameters:
progress (Progress)
- Return type: