Document logging functions.