Skip to content

CLI option to specify logging level #1246

Description

@f97ada87

It would be nice to have a command line option to specify or override log_level (debug/info/warning/error) at runtime. Useful when diagnosing transient issues like connectivity problems, object propagation etc.

Activity

  1. PeterSurda commented on May 13, 2018

    @PeterSurda
    Member

    You can configure logging in the file logging.dat which follows the python logger standard, here is the documentation: https://docs.python.org/2/library/logging.config.html#logging-config-fileformat

  2. f97ada87 commented on May 13, 2018

    @f97ada87
    ContributorAuthor

    Thanks Peter, I was aware of that capability, however editing syntax-heavy files is not the type of immediate flexibility that I had in mind, Anyway, I'm happy to not waste developer bandwidth with this at the moment if you think it's unimportant. If/when I have time, I'll write the PR myself.

  3. PeterSurda commented on May 13, 2018

    @PeterSurda
    Member

    Maybe a PR that would put a couple of examples into the logging contrib directory would help. Changing logging settings is more of a developer activity rather than an end-user activity so I don't think a command line switch is the best approach.

  4. dimyme commented on Sep 20, 2018

    @dimyme
    Contributor

    the github wiki has info on logging

  5. added this to the v0.6.5 milestone on Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions