Skip to content

A suggestion on obtaining a logger #1384

@jsonvot

Description

@jsonvot

In daily use, when multiple handlers have been added, if you need to specify a particular handler for logging, you often have to use filter functions and bind methods to filter out the desired handler for logging. This approach is somewhat indirect. It is hoped that, similar to the logging library which has a basicConfig interface, there could also be a way to directly create a logger via a method like getLogger(sink='{time:YYYYMMDD}.log'), allowing logs to be printed to that log file. This is roughly the idea. Do you think this would be more convenient?

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