I'm using the code below to try to create a custom error message for logging by EL. The code works for logging myself (ie when {ifNdef EUREKALOG}) - in which case the '(Extra Info)' shows in the ShowMessage, but not when calling EL logging. In the latter case, the orginal e.message is logged. Is there a way to achieve this?
on e: exception do
begin
e := Exception(AcquireExceptionObject);
e.Message := '(Extra info) ' + e.Message;
{$if defined(EUREKALOG)}
// EExceptionManager.ExceptionManager.ShowLastExceptionData;
// OR
EBASE.HandleException(e);
{$else}
ShowMessage(e.message + ' I got this, thanks!');
{$endif}
ReleaseExceptionObject;
end;