Skip to content

python logging configuration #21

@oppianmatt

Description

@oppianmatt

in varnish.py:

import logging

logging.basicConfig(
    level = logging.DEBUG,
    format = '%(asctime)s %(levelname)s %(message)s',
)

Why is it reconfiguring the logger? and why isn't it using the standard: logger = logging.getLogger(name) ?

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