Logging name and message in logger.