Added a json stringify to convert objects that get passed to the logger.