Added logging conditional for default logger