added logging test code