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 with close(). 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.

address: str | None = None

The address where the socket is listening for log messages.

start()

Start the log listener.

close()

Shut down the log listener.

share_progress(progress)

Register a progress bar for sharing with child processes.

Parameters:

progress (Progress)

Return type:

UUID