no output from TraceSource

Posted on 2006-03-29
Last Modified: 2008-02-01
Here is my config file...

            <source name="raceCode" switchName="switch2">
<!--                     <add initializeData="ELoft.log" type="System.Diagnostics.TextWriterTraceListener" name="ELoftLocalListener" />
                    <add name="consoleListener" /> -->
<!--            <add initializeData="ELoft.log" type="System.Diagnostics.TextWriterTraceListener" name="ELoftLocalListener" />
           <add name="consoleListener" type="System.Diagnostics.ConsoleListener"/> -->

        <!--     <add initializeData="output.xml" type="System.Diagnostics.XmlWriterTraceListener" name="xmlListener" traceOutputOptions="Timestamp" /> -->
            <add initializeData="ELoft.log" type="System.Diagnostics.DelimitedListTraceListener" name="ELoftListener" traceOutputOptions="Timestamp" />
            <add type="System.Diagnostics.ConsoleTraceListener" name=" consoleListener" traceOutputOptions="Timestamp" />
          <!--   <add name="switch1" value="Critical" /> -->
            <add name="switch2" value="Warning" />

I have #define TRACE at the top of my file where I am doing the trace.  My trace statement looks like this:

            traceSource.TraceEvent(TraceEventType.Start, 0);  //  trace
            traceSource.TraceInformation("\n\n--> trace info\n\n");

and I flush() and close() when the program ends.  Why do I not get any output?  and where is it supposed to go?  I am running this under the debugger of VS 2005 Express.

Thanks in advance.
Question by:rmmarsh
    LVL 13

    Expert Comment

    <%@ Page Trace="true" %>
    LVL 13

    Expert Comment

    disregard my post, ; )

    Author Comment

    Moderator:  please close this... I figured it out myself.

    Author Comment

    I found the answer myself at

    The switch value has to be set to "All" to get what I was tracing.
    LVL 1

    Accepted Solution

    Closed, 500 points refunded.
    Experts Exchange Moderator

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    This video discusses moving either the default database or any database to a new volume.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now