I recently started a new job that uses C#. I have been trying for two frickin hours to get Trace Listeners working in an application here with no luck at all. So to test that I have the web.config setup correctly, I added the following:
var log = new Microsoft.VisualBasic.Logging.Log();
log.WriteEntry("VB Log");
Bam, it works! Dang I LOVE VB.NET! Now I’m going to go ask my boss if I can use the VisualBasic.Logging class in our C# application 😉
David McCarter
Discover more from dotNetTips.com
Subscribe to get the latest posts sent to your email.
