Added the error logger and made the required modification in the scripts, added few functionalities helpful for formatting of the naming of metrics on Datadog Dashboard.