Re: Logging components?



> I use Raize Codesite, which is simply indispensable when working on user
> interface code so you can see what is going on "underneath" without having
> to do breakpoints which affect the order in which things happen. But it is
> also great for remote debugging - you can deploy the capture system, have
> it send to file or network machine, and then gather information. Things
> that it captures include the app name and thread ID and timestamp, all of
> which ensure you are talking about the right information. The viewer adds
> extra value in that you can click on two lines and it shows the time
> difference between them. It can also categorise, search, and make coffee.
>
> Well worth a look, and buying too.

Thanks. It sounds similar in some ways to one at Scalabium -
http://www.scalabium.com/smlog/

That functionality isn't really quite what I'm after though. What I want is
to log specific things I tell it to when I tell it to, when a handled
exception occurs.

The closest I've seen thus far in a quick google search is
http://mapage.noos.fr/qnno/pages/hLog_ex.htm

But again that's not really what I would be after (if I use a component for
this at all).

This is how I would imagine the component to be (if it existed):

* You could drop one or more log components on a form (or datamodule to
store them centrally for a project)

* for each log component, you'd set up a number of error field-value pairs
when you double click on the component or a certain property of that
component (eg called 'fields'). The fields would be typed.

* you'd use properties to tell it whether or not to auto-attach stuff like a
timestamp to each log entry (default to true)

* you'd be able to define and use multiple storage formats for the log: to
plain text, csv, XML, bin, and ideally also to a database. You could switch
between these by setting a property, eg called storagetype, and tell it
where to store it with directory and filename properties (which you can also
set at runtime of course).

Then you'd drop a log component for each exception format you want, and set
it up something like

MyLogComponent.Field1.Value := MyInteger1;
....
MyLogComponent.FieldN.Value := MyStringN;
MyLogComponent.LogIt

Then it would be neat to have some way to configure it so that if certain
fields are the same (say the error name you provide and the exception text),
you could get it to log errors only once, but keep a count of how many times
they occured. So you might get a log item for (csv format)

<todays date>,
mainformcreate_error,
EDatabase not available error - database not available,
<total count of times it occurred>,
<frequency of occurence (times/per week)>,
<first occured date>

It would also be threadsafe.

Anyone know of anything like this?

I realise it's not much work to define a MyExceptionLog(a: string, b:
integer . . .); procedure, I'm just looking around to see what (if anything)
is out there.

Lauchlan M


.



Relevant Pages

  • Re: Optimum settings for TMPGEnc?
    ... let's suppose I'd like to process those captured clips in various ways before encoding them to the MPEG-2 format and making a DVD out of them. ... I could capture the s-video signal using the pass-through feature of my DV camcorder. ... I could capture the s-video signal using a tv tuner card These kind of cards typically allow accessing the captured video data in uncompressed, ...
    (rec.video.desktop)
  • RE: Aspect ratio and format for future
    ... If your camcorders videochip is tuned to 4:3 then you will get best quality ... makes 16:9 video with a 4:3 chip but I don't know if anyone is doing this). ... what quality you get when you set you camcorder to capture in 16:9. ... > FILE FORMAT ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Movie Maker lost the abiliy to capture in DV-AVI from a camcorder
    ... I started capture in at least one other format, ... Note that the camera uses a USB connection. ... maker automatic codec download was off. ...
    (microsoft.public.windowsxp.moviemaker)
  • RE: Movie Maker lost the abiliy to capture in DV-AVI from a camcorder
    ... I did notice the WMV ... I started capture in at least one other format, ... maker automatic codec download was off. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Movie Maker lost the abiliy to capture in DV-AVI from a camcor
    ... using Movie Maker to capture and edit video from his camcorder. ... I have not tried reinstalling camera software or Movie Maker. ... John Zweighaft ... I started capture in at least one other format, ...
    (microsoft.public.windowsxp.moviemaker)