Closed vendral closed 1 year ago
I have a question,
Config file should be a text file with extension: .ini
, not .py
.
Location of the file: szperacz/szperacz/config.ini
(same place as logger.py)
At the moment only logging-related configuration entry shall be there, however some other fields can be added later on.
Done
Create
config.ini
file which will serve a purpose of configuration interface between user and application. Create a fieldLOG_LEVEL=
which can be set by user and read by app during startup (and apply to set logging level).Consider using
configparser
lib: https://docs.python.org/3/library/configparser.html