Adapted logging namespace for prolog query calls