Logic is a science focused on the entire set of laws, modalities, and forms associated with scientific knowledge. It is, therefore, a science with a formal nature, devoid of content, and which only focuses on the study of valid inference alternatives.
Logic is focused on studying the ideal and necessary methods and principles for identifying correct reasoning against that which is not correct.