logging plugin loop