Logic is usually considered as a part of philosophy. There are people in philosophy departments studying formal logic. I think all formal sciences should be considered as part of philosophy because they provide tools and language for the deepest ideas.