Add definition for logrules