mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 07:59:35 +02:00
LazLogger: added missing stackdump with log-group
This commit is contained in:
parent
e7f787f78d
commit
a68a32a9b5
@ -625,6 +625,14 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
procedure DumpExceptionBackTrace(LogEnabled: TLazLoggerLogEnabled);
|
||||
begin
|
||||
{$IFnDEF USED_BY_LAZLOGGER_DUMMY}
|
||||
DebugLogger.DebugLn(' Stack trace:');
|
||||
DebugLogger.DumpExceptionBackTrace(LogEnabled);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
{$IFDEF USED_BY_LAZLOGGER_DUMMY}
|
||||
operator := (g: PLazLoggerLogGroup): TLazLoggerLogEnabled;
|
||||
begin
|
||||
|
@ -116,6 +116,7 @@ function dbgMemRange(P: Pointer; Count: integer; Width: integer = 0): string; ov
|
||||
function dbgMemStream(MemStream: TCustomMemoryStream; Count: integer): string; overload;
|
||||
|
||||
procedure DumpExceptionBackTrace;
|
||||
procedure DumpExceptionBackTrace(LogEnabled: TLazLoggerLogEnabled);
|
||||
|
||||
operator := (g: PLazLoggerLogGroup): TLazLoggerLogEnabled;
|
||||
operator := (g: Boolean): TLazLoggerLogEnabled;
|
||||
|
@ -247,6 +247,7 @@ type
|
||||
const s16: string = ''; const s17: string = ''; const s18: string = ''); overload;
|
||||
|
||||
procedure DumpExceptionBackTrace;
|
||||
procedure DumpExceptionBackTrace(LogEnabled: TLazLoggerLogEnabled);
|
||||
end;
|
||||
|
||||
{ TLazLoggerWithGroupParam
|
||||
@ -711,6 +712,12 @@ begin
|
||||
DumpAddr(Frames[FrameNumber]);
|
||||
end;
|
||||
|
||||
procedure TLazLogger.DumpExceptionBackTrace(LogEnabled: TLazLoggerLogEnabled);
|
||||
begin
|
||||
if not LogEnabled.Enabled then exit;
|
||||
DumpExceptionBackTrace;
|
||||
end;
|
||||
|
||||
procedure TLazLogger.DoFinish;
|
||||
begin
|
||||
//
|
||||
|
@ -193,6 +193,8 @@ type
|
||||
const {%H-}s13: string = ''; const {%H-}s14: string = ''; const {%H-}s15: string = '';
|
||||
const {%H-}s16: string = ''; const {%H-}s17: string = ''; const {%H-}s18: string = ''); overload;
|
||||
|
||||
procedure DumpExceptionBackTrace;
|
||||
procedure DumpExceptionBackTrace(LogEnabled: TLazLoggerLogEnabled);
|
||||
end;
|
||||
|
||||
|
||||
@ -534,6 +536,16 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
procedure TLazLogger.DumpExceptionBackTrace;
|
||||
begin
|
||||
|
||||
end;
|
||||
|
||||
procedure TLazLogger.DumpExceptionBackTrace(LogEnabled: TLazLoggerLogEnabled);
|
||||
begin
|
||||
|
||||
end;
|
||||
|
||||
{ TLazLoggerLogGroupList }
|
||||
|
||||
function TLazLoggerLogGroupList.GetItem(Index: Integer): PLazLoggerLogGroup;
|
||||
|
Loading…
Reference in New Issue
Block a user