added logging to doc