Skip to content

[SDK] Replace loggingmachine.py to real module name during logging #2449

@basfroman

Description

@basfroman

blogging always uses the name loggingmachine.py as "filename" in the formatter.

LoggingMachine logic needs to be improved to be able to pass a logger created in a separate module to use the module name in logging.

example:

bt.logging.on()
2024-11-20 12:06:25.015 |       INFO       | bittensor:loggingmachine.py:472 | Logging enabled.
2024-11-20 12:06:25.015 |       INFO       | bittensor:loggingmachine.py:327 | Enabling default logging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions