Improve documentation for logging