Mathematical logic is formal logic. Formal logic, however developed, is mathematics. Formal logic, however, is by no means the whole of logic, or even its principal part. It is hardly to be reckoned as a part of logic proper.
Formal logic is mathematics; it is the most abstract branch of mathematics. But no other logic is called for in pure mathematics.