A more detailed description of your recording setup is needed, but I see a few possibilities..
- You're recording with a mic and the mic is picking up the sound of the playback from the previously-recorded tracks (& click) playing through the speakers;
Solution: turn off the speakers and monitor in headphones while recording
- The input to the recording channel (at the top of the channel strip) in Logic should be the mic (or signal source) directly -- if that input setting includes any other audio then you'll record that (unwanted) sound as well. If the meter on the input channel follows (moves in time with) the playback audio even when you're not playing live, then that could be what's happening;
Solution: change the input setting so only the desired input signal itself causes movement on the input channel meter
- Your audio interface has its own internal monitor mixer that's accidentally routing playback audio to the recording (input) channel;
Solution: If that's the case you'd have to consult the interface's documentation and eliminate the unwanted audio there
- If you have an external analog mixer the same thing could be happening -- playback audio might be accidentally routed to the recording input;
Solution: you'd have to check the analog signal flow and eliminate any such unwanted routing
The first two suggestions are very basic, but you didn't say how experienced a recordist you are.. That information would be helpful, and again, additional detail about the recording/setup would be needed to make a more specific determination, but take a look at these suggestions and see if one of them might apply..