How to setup custom logging in Python|Flask with dictConf?

Logging is a very important feature and requirement while we are working on any type of project, either small or large. Because with the help of log messages, we could identify the issue in running applications and could solve it