logging support, HDIST_JAIL_MODE envvar support