We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


no output from TraceSource

rmmarsh asked
Medium Priority
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.
Watch Question

<%@ Page Trace="true" %>

disregard my post, ; )


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


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.
Closed, 500 points refunded.
Experts Exchange Moderator

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.