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!