Change logQuery from define() to OC::Config