2017-07-06 14:58:29 +00:00
|
|
|
unit X2Log.TextFormatter.Intf;
|
|
|
|
|
|
|
|
interface
|
|
|
|
uses
|
2018-04-23 09:36:47 +00:00
|
|
|
System.Classes,
|
|
|
|
|
2017-07-06 14:58:29 +00:00
|
|
|
X2Log.Intf;
|
|
|
|
|
|
|
|
type
|
|
|
|
IX2LogTextFormatterHelper = interface
|
|
|
|
['{D1A1DAD5-0F96-491F-8BD5-0B9D0BE87C32}']
|
|
|
|
function GetDetailsFilename: string;
|
2018-04-23 09:36:47 +00:00
|
|
|
function SaveDetailsToStream(AStream: TStream): Boolean;
|
2017-07-06 14:58:29 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
IX2LogTextFormatter = interface
|
|
|
|
['{C49BE49D-8563-4097-A2B7-0869F27F5EDD}']
|
|
|
|
function GetText(AHelper: IX2LogTextFormatterHelper; ALevel: TX2LogLevel; ADateTime: TDateTime; const AMessage: string; const ACategory: string; ADetails: IX2LogDetails): string;
|
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
end.
|