Skip to content

readme example needs to "start()" the listener #22

@john-devseek

Description

@john-devseek

In the example demonstrating usage of QueueHandler and QueueListener, the listener is instantiated with the following line in the example:
logging.handlers.QueueListener(queue, handler_loki)

Looking at the source code, the thread handling the queue is not instantiated or started until start() is called (so __init__ is not enough).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions