Logging will not in infinite loop in case someone logs during logging.