no output from TraceSource

Here is my config file...


        <system.diagnostics>
        <sources>
            <source name="raceCode" switchName="switch2">
                <listeners>
<!--                     <add initializeData="ELoft.log" type="System.Diagnostics.TextWriterTraceListener" name="ELoftLocalListener" />
                    <add name="consoleListener" /> -->
                </listeners>
            </source>
        </sources>
        <sharedListeners>
<!--            <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" />
        </sharedListeners>
        <switches>
          <!--   <add name="switch1" value="Critical" /> -->
            <add name="switch2" value="Warning" />
        </switches>
    </system.diagnostics>

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.
rmmarshAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

devsolnsCommented:
<%@ Page Trace="true" %>
0
devsolnsCommented:
disregard my post, ; )
0
rmmarshAuthor Commented:
Moderator:  please close this... I figured it out myself.
0
rmmarshAuthor Commented:
I found the answer myself at http://msdn2.microsoft.com/en-US/library/system.diagnostics.tracesource(VS.80).aspx

The switch value has to be set to "All" to get what I was tracing.
0
kodiakbearCommented:
Closed, 500 points refunded.
kb
Experts Exchange Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.