Added documentation for logging.