system.diagnostics.trace.write(..)

Discussion in 'ASP .Net' started by Alex, Oct 19, 2003.

  1. Alex

    Alex Guest

    Hi,

    I have noticed that I can only see the output of
    "system.diagnostics.trace.write(..)" in the output window of the dubugger.
    which leaves me wondering, if these statements are left in the code in a
    release build, then where exactly can I see their output.
    Is it possible to write then directly to a file rather than the output
    window of the debugger.

    I am under the impression that objects of the system.diagnostics.trace class
    are left in the code when a release build is done where as objects of the
    class system.diagnostics.debug are removed from a release build. Am I
    correct in this view??

    cheers

    Alex.
     
    Alex, Oct 19, 2003
    #1
    1. Advertising

  2. "Alex" <> wrote in message
    news:...
    > Hi,
    >
    > I have noticed that I can only see the output of
    > "system.diagnostics.trace.write(..)" in the output window of the dubugger.
    > which leaves me wondering, if these statements are left in the code in a
    > release build, then where exactly can I see their output.
    > Is it possible to write then directly to a file rather than the output
    > window of the debugger.
    >
    > I am under the impression that objects of the system.diagnostics.trace

    class
    > are left in the code when a release build is done where as objects of the
    > class system.diagnostics.debug are removed from a release build. Am I
    > correct in this view??


    Look up the System.Diagnostics.TraceListener class in the documentation.
    --
    John Saunders
    Internet Engineer
     
    John Saunders, Oct 20, 2003
    #2
    1. Advertising

  3. Alex

    Alex Guest

    cheers john.

    alex.


    "John Saunders" <john.saunders at surfcontrol.com> wrote in message
    news:...
    > "Alex" <> wrote in message
    > news:...
    > > Hi,
    > >
    > > I have noticed that I can only see the output of
    > > "system.diagnostics.trace.write(..)" in the output window of the

    dubugger.
    > > which leaves me wondering, if these statements are left in the code in a
    > > release build, then where exactly can I see their output.
    > > Is it possible to write then directly to a file rather than the output
    > > window of the debugger.
    > >
    > > I am under the impression that objects of the system.diagnostics.trace

    > class
    > > are left in the code when a release build is done where as objects of

    the
    > > class system.diagnostics.debug are removed from a release build. Am I
    > > correct in this view??

    >
    > Look up the System.Diagnostics.TraceListener class in the documentation.
    > --
    > John Saunders
    > Internet Engineer
    >
    >
    >
     
    Alex, Oct 20, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UGF0cmljaw==?=

    System.Diagnostics.Trace in ASP.NET- how not to IISRESET

    =?Utf-8?B?UGF0cmljaw==?=, Jun 9, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    4,795
    Steven Cheng[MSFT]
    Jun 10, 2005
  2. stand__sure
    Replies:
    2
    Views:
    1,136
    stand__sure
    Aug 29, 2005
  3. Matthias S.
    Replies:
    1
    Views:
    688
    Daniel Fisher\(lennybacon\)
    Nov 30, 2005
  4. Oleg Ogurok
    Replies:
    1
    Views:
    1,323
    Phuff
    Apr 20, 2006
  5. msnews.microsoft.com
    Replies:
    0
    Views:
    487
    msnews.microsoft.com
    Jan 5, 2007
Loading...

Share This Page