Skip to content

Use logging instead of print #286

@leapingllamas

Description

@leapingllamas

The output is very chatty, especially progress reports from genetic.py. With most packages, one can apply logging filters outside the code to modify what information is surfaced. For instance, I normally would be able to do something like this in my calling code:

    logger_gplearn = logging.getLogger('gplearn')
    logger_gplearn.setLevel(logging.WARN)

However, as this repo uses print statements instead of logging, this is not possible. Logging is generally best practice as you can control the look and style of the output, show timestamps, line numbers, set levels and so on.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions