Re: Logging components?
- From: "Lauchlan M" <LMackinnonAT_NoSpam_ozemailDOTcomDOTau>
- Date: Wed, 18 May 2005 11:19:06 +1000
> But I'm still trying to figure out what the logging problem is in the
first
> place.
There is no problem! <g>
This is all stuff that can be done easily anyway, with
MyLogToServerProcedure(var1, Var2, Var3 . . .);
I was just looking to see if there was anything out there that would wrap it
neatly in a component framework, provide a little bit of extra flexibility
with regard to storage formats etc. And a bit more intelligence with regard
to logging frequently occuring exceptions once for each type.
> What information is being logged?
To give a hypothetical example, in the form create in a C/S project, you try
and connect to the database. The database is not available, so it gives you
a 'cant find database' exception. You anticipated this possibility, so you
have it in a try/except block. But a user complains that they can't start
the program. You get them to send the log, you see the log item, and you
figure the user isn't starting hte program because either the database can't
be found ont he network or it wasn't started.
Another example, you have a case statement or series of if statements that
are meant to be exhaustive. But just in case, in the final 'else' you log an
error saying that it went somewhere it was not meant to. (In this example
perhaps it might be better though to make it an exception and not handle it,
so MadExcept/EurekaLog tells you the problem is occuring).
etc, I don't seem to be able to think of good examples of the to of my head
right now.
> Why can you not just do the special processing in your exception handlers
> and then re-raise the exceptions and let execution flow to MadExcept or
> Eurekalog to log that the exception occurred (without showing error
message
> box to users)?
I could. I'd also have to raise some from scratch, as it is not only errors
arising from exceptions I am dealing with.
I will think some more about this solution, it does have some merits.
The part it doesn't offer of course is the flexibility for logging it to
other formats eg XML, databases. Maybe this is a good support question for
MadExcept and EurekaLog.
Lauchlan Mackinnon
.
- Follow-Ups:
- Re: Logging components?
- From: Lauchlan M
- Re: Logging components?
- References:
- Logging components?
- From: Lauchlan M
- Re: Logging components?
- From: Paul Dolen
- Re: Logging components?
- From: Lauchlan M
- Re: Logging components?
- From: Herbert Sitz
- Re: Logging components?
- From: Lauchlan M
- Re: Logging components?
- From: Herbert Sitz
- Logging components?
- Prev by Date: Re: a Caching DNS Server (in Delphi)?
- Next by Date: Re: Logging components?
- Previous by thread: Re: Logging components?
- Next by thread: Re: Logging components?
- Index(es):
Relevant Pages
|