forked from IndySockets/Indy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IdLogDebug.pas
72 lines (56 loc) · 1.54 KB
/
IdLogDebug.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved.
}
{
$Log$
}
{
Rev 1.4 8/6/04 12:21:28 AM RLebeau
Removed TIdLogDebugTarget type, not used anywhere
Rev 1.3 2004.02.03 4:17:16 PM czhower
For unit name changes.
Rev 1.2 2003.10.17 8:17:22 PM czhower
Removed const
Rev 1.1 4/22/2003 4:34:22 PM BGooijen
DebugOutput is now in IdGlobal
Rev 1.0 11/13/2002 07:56:02 AM JPMugaas
}
unit IdLogDebug;
interface
{$I IdCompilerDefines.inc}
//Put FPC into Delphi mode
uses
IdLogBase;
type
TIdLogDebug = class(TIdLogBase)
protected
procedure LogStatus(const AText: string); override;
procedure LogReceivedData(const AText, AData: string); override;
procedure LogSentData(const AText, AData: string); override;
end;
implementation
uses
IdGlobal;
{ TIdLogDebug }
procedure TIdLogDebug.LogReceivedData(const AText, AData: string);
begin
DebugOutput('Recv ' + AText + ': ' + AData); {Do not Localize}
end;
procedure TIdLogDebug.LogSentData(const AText, AData: string);
begin
DebugOutput('Sent ' + AText + ': ' + AData); {Do not Localize}
end;
procedure TIdLogDebug.LogStatus(const AText: string);
begin
DebugOutput('Stat ' + AText); {Do not Localize}
end;
end.