Trace class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • martin

    #1

    Trace class

    Hi,

    The trace class seems to me to be very usefull however there are a few
    features of it that have to confused.
    I am using visual studio 2003.

    the IDE will not let me write

    trace.assert(.. ) or trace.writeLine (..) or trace.writeif(. .)

    but it will let me write
    debug.assert(.. ) or debug.writeLine (..) or debug.writeif(. .)

    it is as if it does recognise these methods of the trace class.

    I was also interested to note that I can use trace.write(..) , trace.warn(..)
    without importing system.diagnost ics
    however I must import system.diagnost ics to use debug.assert(.. ) ,
    debug.writeline (..)

    maybe I need to employ trace listeners to use these methods of the trace
    class???

    I am a little confused and would appreciate somebody clearing this up for
    me.

    cheers

    martin.


  • Rad

    #2
    Re: Trace class

    You may have confused the two Trace classes.. one's specific to web
    applications, and the other comes from System.Diagnost ics as you already
    noted...

    That might be the explanation...


    "martin" <martincello67@ hotmail.com> wrote in message
    news:Ooe4G%23cl DHA.2328@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > Hi,
    >
    > The trace class seems to me to be very usefull however there are a few
    > features of it that have to confused.
    > I am using visual studio 2003.
    >
    > the IDE will not let me write
    >
    > trace.assert(.. ) or trace.writeLine (..) or trace.writeif(. .)
    >
    > but it will let me write
    > debug.assert(.. ) or debug.writeLine (..) or debug.writeif(. .)
    >
    > it is as if it does recognise these methods of the trace class.
    >
    > I was also interested to note that I can use trace.write(..) ,[/color]
    trace.warn(..)[color=blue]
    > without importing system.diagnost ics
    > however I must import system.diagnost ics to use debug.assert(.. ) ,
    > debug.writeline (..)
    >
    > maybe I need to employ trace listeners to use these methods of the trace
    > class???
    >
    > I am a little confused and would appreciate somebody clearing this up for
    > me.
    >
    > cheers
    >
    > martin.
    >
    >[/color]


    Comment

    Working...