CLI option to specify logging level #1246
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-07#1246
Loading…
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 ~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.
the github wiki has info on logging