Open kevinsui581 opened 4 years ago
I have read source code, but can't found send stacktrace info to sentry; I add jcldebug into my project, so it can create stack trace info, i want to know how to send the stack trace info with quick logger to sentry?
Try the Jedi library
procedure LogException(const E: Exception);
var
msg: string;
StackTrace: string;
begin
if not IsNullOrEmpty(E.StackTrace) then
StackTrace := E.StackTrace
else
begin
{$IFDEF MSWINDOWS}
{$IFDEF JclDebugEnabled }
var list := TStringList.Create;
try
JclLastExceptStackListToStrings(list,True, True, True, False);
StackTrace := list.Text;
finally
list.Free;
end;
{$ENDIF}
{$ENDIF}
end;
msg := Format('%s: %s on %s', [E.ClassName, E.Message,StackTrace]);
Log(msg, etException);
end;
i have include iiExceptionInfo, iiExceptionStackTrace, in sentry,can not find stack trace info!