IdLogDebug.pas 1.5 KB

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