Function for setup loggers.
Adding metrics configuration in json.