revise logging feature