I doubt there would be any sort of golden rule for this. Really depends on the feel you want to get across in a particular segment. Will not seems serious to me, won't more casual.
"I won't do that."
"I will not do that."
I think the worst thing you could do though is do a rule on this, and follow it blindly. How tedious would it be to never see a contraction? or always see them. Mix it up.
I tend to go with whatever fits with the character whose POV I'm working from, or the situation, and espeically when someone is talking. There are times when not contracting sounds seriously stilted.
I generally use contractions in dialog (except for characters who speak in a highly formal register), but not in the narrative. The exception to the latter is when the narrative voice is more informal (as seen in some of my short stories). As I like a subjective narrative colored by the POV of my active lead, I'm mixing it up in one of my series, using contractions in the narrative with characters who are ill-suited for a formal narrative voice. We'll see how it's received.
Either, or, it depends on the POV/style you use and what you want to convey to the reader. Just be consistent in the way you use them through the whole story.