The article discusses the problem of formation of logical competences of future mathematics teachers both at the undergraduate and graduate levels. In this case, the logic is considered in three aspects – classical Aristotelian logic, modern mathematical logic and its application to Aristotelian logic, non-classical logics.