Did you actually shit blood, or was there just some umm... streaking? If its just slight traces of blood, and it was particularly large logs, it could have just broken some blood vessels, thats fairly common, especially if your diet is lousy, or if you push too hard. Don't panic, but keep track of it. If it keeps happening, see a doctor.