Add documentation for logging