add logger behaviour