added debug level for logging and logging config in the config file