add logging feature with di