How to implement Trace best

From: Thorsten Tarrach (tho_public_at_gmx.de)
Date: 02/26/04


Date: Thu, 26 Feb 2004 19:35:19 +0100

Hallo,
The best thing would be to implement a trace call in every procedure to
write an entry in the log file:
If MySwitch.TraceVerbose() then trace.writeline("Procedure xyz started with
Parameters ...")

Unfortuantelly is this a lot of work.
Is there an easier way to implement a good tracing?
How is tracing done in professional applications?
Thanks, Thorsten



Relevant Pages

  • [RFC PATCH 0/2] tracing/stat: stat entries self handling mode
    ... This patchset introduce a new mode in stat tracing which handles the ... stat entries instead of the tracer. ... We have one lock on the fastpath: while a entry is updated by ...
    (Linux-Kernel)
  • Re: [tip:tracing/printk] tracing: optimize trace_printk()
    ... tracing: optimize trace_printk ... Impact: micro-optimization ... Where trace_printk_fmt is an entry into a global array. ...
    (Linux-Kernel)
  • Re: Tracing Does Not Work With IIS
    ... Try looking for the log file in the user-specific directly for the user ... account that IIS is running under. ... > started when tracing was off. ... >> Is it no longer possible to generate a trace log when debugging a web ...
    (microsoft.public.data.odbc)
  • Re: [SLE] (Revisited) Works in Windoze, NOT in SuSE!?!?!?!?!?!?
    ... The 03.09.22 at 19:06, Bernd wrote: ... perhaps you were not tracing the children. ... the log file can be verrrry big. ... Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)
  • Re: TRACE doesnt work on the remote box
    ... Nothing gets logged to my log file on the remote server. ... want to do tracing, it needs to be turned on somewhere ... I haven't changed anything while deploying to the remote server. ...
    (microsoft.public.dotnet.framework.aspnet)