Skip to content

Dynamically change log level in the file #218

@phungleson

Description

@phungleson

Hi,

Thanks again for logforth.

I wonder if I can enable log for a file, i.e. at the top of the file I want to say log_level!(DEBUG), so it will add to the global configuration.

I understand that I can change that at env level, or when I init the log, but when we have lots of files, it is difficult to get the correct module of the file to enable the log.

Thanks,

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