Line following thing

What i want to do is have an objects path traced by a line… so wherever it had been there is a line… i dunno if im sayin that right but i cant think of a good way to word it. anyways… if anyone can tell me how to do it that would be great… im not using it for any specific animation, i just want to start learning some new effects that i can incorporate into future stuff… thanks a lot in advance