The following three patches are a second try at the logger-related patches that I submitted on July 2. I believe that I have addressed (and fixed) all the concerns the folks expressed.