Setup for logging.