added enable logging option to rules