Mainly this is a question about how to get a similar behaviour as java logging, where it is enough to create or edit the logging config file to change the behaviour of the logging.
Is this possible in Python without having to modify the scripts which are using logging functions?
As long as the python program uses the
.fileConfigmethod from the logging module, then yes, you can alter logging configuration by editing a file.Generally, the main function of a larger program would call it like this:
The documentation on the file format is pretty comprehensive.