Document logging helper functions