updated logging mechanism.