Theoretical thought becomes possible only when intuitions which exist only at the level of coordination of actions come into contact with socially acquired concepts which can then be assimilated. Now Piaget makes the mistake of making no distinction between primitive intuitions and concepts but while that error leads him wildly astray when it comes to developing an epistemology, it does not detract from out point here. Before we have the concept of logic, we have already learnt to coordinate our practical activity, such as movements of our hands and eyes, so as to accomodate ourselves to the objective world - whether that objective world be one dominated by human beings or lions and tigers or vegetables is neithe rhere nor there. Now, we do not yet have the concept of the reversibility of displacements, but we have learn to reverse them of out own volition. We learn to sort and categorise things, to form sets and classes of things.
Formal logic is nothing more nor less than the behaviour of sets of things.
However, the question is not whether logic can exist before or other than in the minds of thinking organisms, it is a question as to whether this thought object is true , or has truth . Now I hope you can see the purpose of the psychological diversion from the epistemological question. Dialectics Dialectical Logic is a more general, comprehensive development of logic than formal logic. Formal logic is based on the relation of identity and simplicity of concatenation. Consequently, the grasping of dialectics in the form of concepts arises later in historical and cognitive development than formal logic.