CLI option to specify logging level #1246
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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-fileformatThanks 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.
Maybe a PR that would put a couple of examples into the
loggingcontrib 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.the github wiki has info on logging