How to setup custom logging in core Python , in Flask with dictConf file?

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