Logger logic