using log for logging messages.