Add logging feature.