Configure logging.