integrate logging into ruleset_addrule