[Git][openldap/openldap][OPENLDAP_REL_ENG_2_6] 3 commits: ITS#6949 Extract logging code so lloadd can also use it