Does logic belong to philosophy or mathematics?



Does logic belong to philosophy or mathematics? Who could tell me.

.