Outlining

How much outlining do you do when you write? I’m particularly interested in the answers of those of you who have actually written works of substantial length. For those who haven’t written lengthy works, do you feel you need an outline? How far ahead do you look? And, for everyone, do you feel that knowing where your story is headed takes away some of the excitement of writing?