Formal logic makes our reasoning precise by providing formal systems in which to carry out reasoning. These systems are specified by a proof theory and often a corresponding model theory. Either of these theories will take many different forms and presentations, the important part is that they are rigorous and clearly defined.
Formal systems of logic are not concerned with the content of an argument, but only with the form.
For example, consider the following arguments.
$ $
$ $
Formal logic can not tell you that the latter argument is about non-sense. What it will tell you is about the form of the argument and whether that's valid and it so happens that both of these arguments "look" the same.
Let stand for "Socrates is a man", stand for "Socrates is mortal", stand for "the moon is ruled by the Mouse King", and for "the moon is made of cheese".
Then these arguments can be seen as follows.
$ \begin{array}{l} \text{If then .} \ \text{$S$} \\hline \text{Therefore, .} \end{array} $
$ \begin{array}{l} \text{If then .} \ \text{$M$} \\hline \text{Therefore, .} \end{array} $
This makes it apparent that the arguments proceed in the same way. Then if we introduce the symbol to mean "If , then " in , and the symbol for "therefore", the form if these arguments is written as
$ $