pre logging