Skip to content

docs: logging.getLogger('root') does not get you the root logger #56

Closed
@howardjones

Description

@howardjones

In the README, it says to use logging.getLogger('root') to initialise the root logger. That doesn't do that. That initialises a logger called "root".logging.getLogger(None) gets you the root logger.

(Just spent a while with logging_tree to figure out why I couldn't getting JSON logging working in non-main modules)

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