Adds a loop to logger