Document logging system