finalized logging module