> From what I can see from the help files, this trace stuff is
> just a fancy way of writing to data to a file (if that's the
> listener I choose) if a flag is set and I can't see any
> advantage of it over standard logging to a file if a flag is
> set. I assume I'm wrong because I can't see MS spending a
> lot of time on this for no reason. So what am I missing?
If you want to re-do the whole tracing framework available to you, by
my guest, it's your time and your client's money :)
Frans
>
>
>
> Message from Frans Bouma
> <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM received on
> 08/25/2005 09:30 AM
>
> 08/25/2005 09:30 AM
>
>
>
> Frans Bouma <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM
>
> Please respond to "Unmoderated discussion of advanced .NET topics."
> <[email protected]>
> Sent by "Unmoderated discussion of advanced .NET topics."
> <[email protected]>
>
>
>
> To: [email protected]
> cc:
> Subject: Re: [ADVANCED-DOTNET] Writing code
> for Debugging
>
> > I've been given the task of coming up with a standard for
> our new app
> > for help in debugging the code when a client calls in and has a
> > problem. So far, all I can think of is to log all variable
> values at
> > the beggening of all functions and logging the output of all
> > functions. Also logging all screen data (if grid, only
> current row).
> >
> > Questions:
> >
> > 1) What have you done in the past to help debugging?
> >
> > 2) Is there a better way then my idea above?
>
> Yes, look into trace switches and listeners. You can
> make life easier with a library like Log4Net for example
> which has a lot of different fine grained trace listeners on
> board. The main thing is that trace switches can be turned on
> or off with a .config file, and the output receiver can also
> be configured in the config file.
> This means that you don't have to recompile a build for your
> customer to enable logging of data at runtime.
>
> Enabling tracing is very simple, the .NET
> documentation has a lot of info on this (tracing, trace
> listeners, trace switches). Also log4net has extra
> documentation if you want to use log4net for this (you can
> use the default .NET build in tracing)
>
> Frans
>
> ===================================
> This list is hosted by DevelopMentorR http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
>
>
> ===================================
> This list is hosted by DevelopMentorR http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
>
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com