Trace Listeners vs. Custom Logging Component

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm writing several small utility apps that all need to do some routine
logging of their progress, exceptions encountered, etc. The utilities
include a couple of Console apps, a windows Service, and a couple of Windows
Forms apps.

I was just considering the possibility of implementing the logging
capability via the built-in Trace listeners, rather than writing my own
logging component.

Practically all of the documentation on Trace and Debug classes talks about
using those classes for troubleshooting purposes. But it appears that there
is no reason they can't be used for routine logging purposes.

What would you do and why?... would you prefer to roll your own reusable
logging component or use the Trace and TraceListeners?

Thanks.


.



Relevant Pages

  • Re: Why are apps reinstalled?
    ... The apps are installed after logging in. ... 23 students and 23 laptops. ... before as the laptops are intensively used. ...
    (microsoft.public.windows.server.active_directory)
  • Re: gnome 2.3 desktop shows home/me not home/me/Desktop
    ... On 12/20/2011 1:05 PM, T.C. Hollingsworth wrote: ... under "apps" and there's a setting for the path of the folder that is ... it doesn't seem to do anything (I am logging out and logging back in to make sure each test is with a fresh start-up ... ...
    (Fedora)
  • Re: When to log? (best practices and localization)
    ... Sure logging is a must for most/all ... server apps as well as well as apps that have no console to print to. ... it's more important to have a logging strategy at all than what that strategy is. ...
    (comp.lang.java.help)
  • Re: When to log? (best practices and localization)
    ... Sure logging is a must for most/all ... server apps as well as well as apps that have no console to print to. ... know when to use a logging tool and when System prints are "enough". ...
    (comp.lang.java.help)
  • Re: Removing blocks of text
    ... Do you want to open and close the file for a while and rebuild it or do you ... want that while the file keeps open for logging. ... Each log entry has six lines ... > file size reasonable so I am trying to write a routine that removes ...
    (microsoft.public.dotnet.languages.vb)