Add logging capability.