Added log-levels to surpress unwanted error messages from console but instead we send them to the log file for further investigation later on.