Add option to log datailed metadata. Assumes metadata is JSON stringifia...