Skip to content

logging module collision #766

Closed
Closed
@hadim

Description

@hadim

Logging module collides with the Python one:

import pytorch_lightning as pl
dir(pl.logging)

It gives you the python logging module attributes instead of the pytorch_lightning ones.

This is probably due to this https://github.com/PyTorchLightning/pytorch-lightning/blob/deffbaba7ffb16ff57b56fe65f62df761f25fbd6/pytorch_lightning/__init__.py#L31

Maybe you should rename the logging module to something else such as logger?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions