View Full Version : Disable the call stack for certain exceptions.
Mark Hutchinson
27-Mar-2006, 12:22 PM
Is it possible to disable recording the call stack for certain exceptions.
These would be custom exceptions.
Thanks.
admin
27-Mar-2006, 02:27 PM
Hi,
Mark Hutchinson wrote:
> Is it possible to disable recording the call stack for certain exceptions.
> These would be custom exceptions.
> Thanks.
Yes, there are different methods.
The more simple is add the exception type you want ignore in the
"Project/EurekaLog Options.../Exceptions" Tag, leaving the message field
empty.
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Mark Hutchinson
27-Mar-2006, 10:45 PM
Ok, thanks.
However, I'm not sure this is quite what I'm looking for. I still want to
record the error and the information on the General Tab (including custom
data), but don't need the information on the other tabs such as the call
stack. Really what I am trying to do is to minimize the size of the error
file when it is emailed by exluding information that I do not need to save.
If I understand correctly the method you have suggested will not record the
exception at all.
Thanks.
admin
28-Mar-2006, 08:15 AM
Hi,
Mark Hutchinson wrote:
> Ok, thanks.
>
> However, I'm not sure this is quite what I'm looking for. I still want to
> record the error and the information on the General Tab (including custom
> data), but don't need the information on the other tabs such as the call
> stack. Really what I am trying to do is to minimize the size of the error
> file when it is emailed by exluding information that I do not need to save.
>
> If I understand correctly the method you have suggested will not record the
> exception at all.
>
> Thanks.
Yes, it's so.
Currently to reduce the Log file size you can only choose if
include/exclude the Modules and CPU section via "Project/EurekaLog
Options.../Log File/Save Modules/CPU Section" or at run-time with the
following code:
uses
ExceptionLog, ECore;
procedure TForm1.EurekaLog1ExceptionNotify(
EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
with EurekaExceptionRecord do
begin
if (ExceptionObject is YOUR_EXCEPTION_TYPE) then
CurrentModuleOptions.LogOptions :=
(CurrentModuleOptions.LogOptions - [loSaveModulesSection] -
[loSaveCPUSection])
else
CurrentModuleOptions.LogOptions :=
(CurrentModuleOptions.LogOptions + [loSaveModulesSection] +
[loSaveCPUSection]);
end;
end;
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.