Include filename and time in logs

Also for empty json, delete the json. Make it better equipped.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>