Connection info like whats in logfile

I was wondering if there are any guru's' that vb.net or c# that can help me send the complete info (same as whats sent to logfile) to a richtextbox? thanks in advance!