adding logging info and printed to the screen in json format