Adding log rule