As far as direct "line-in" recording for your guitar, software to use might be stuff like Amplitube, Guitar Rig, Pod Farm or Toontrack have just released an add-on for their EZMix software that gives you guitar sound pre-sets that were created by Misha Mansoor, Fredrik Thordendal and Devin Townsend, so that's a pretty good place to start, too. However for that last one, you need to buy the host program first as the pre-sets are just an extension for it.
You would need a DAW program to host it, too. So any of the free ones like Reaper and Audacity or something a little more powerful like Cubase Essential etc should see you right.
Note on Logic: Logic is now Apple only, so only buy it if you are running a Mac.
Cubase will run on anything, which is why I use it.