WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

To use a dedicates namespace for the logging. #152

@corradomio

Description

@corradomio

To use the Python 'logging' package to write logs is good.
BUT it is BETTER (and simple) to use a dedicated namespace, for example "castle.algorithm.<algo_name>" for the algorithms, and "castle.general" or similar names for the generic parts of the code, and NOT the 'root' namespace.
This because if the library is used in a more complex application, it permits to decide which logs to select.

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