Note: This isn't a question asking for an explanation, that would be a debate, more one asking for clarification. I don't want this turning into a debate about the existence of deities.
Whenever debating religion and deities we have to use logic but if a deity was apart that the debates may have to follow a different tactic. There is the common atheistic rebuttal of "Can an omnipotent being make a bowl of porridge too big for themselves to finish...and then eat it all?" which depends on there being logical constraints (and a strict definition of omnipotence).
The question comes down to: in the theologies (monotheistic if this needs to be narrowed down) where do the Gods stand against logic? Is it believed that logic itself was created by a God or that it comes before as some more fundamental rule which Gods are also governed by?
At the 'beginning' do theologies hold that the possibilities results of the creation were restricted by what is logical or was logic a thing which was created by the deity first and then a universe.