document logging