IdLogDebug.pas 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. { $HDR$}
  2. {**********************************************************************}
  3. { Unit archived using Team Coherence }
  4. { Team Coherence is Copyright 2002 by Quality Software Components }
  5. { }
  6. { For further information / comments, visit our WEB site at }
  7. { http://www.TeamCoherence.com }
  8. {**********************************************************************}
  9. {}
  10. { $Log: 10233: IdLogDebug.pas
  11. {
  12. { Rev 1.1 8/6/04 12:21:54 AM RLebeau
  13. { Removed TIdLogDebugTarget type, not used anywhere
  14. }
  15. {
  16. { Rev 1.0 2002.11.12 10:44:10 PM czhower
  17. }
  18. unit IdLogDebug;
  19. interface
  20. uses
  21. Classes,
  22. IdLogBase;
  23. type
  24. TIdLogDebug = class(TIdLogBase)
  25. protected
  26. procedure LogStatus(const AText: string); override;
  27. procedure LogReceivedData(const AText: string; const AData: string); override;
  28. procedure LogSentData(const AText: string; const AData: string); override;
  29. end;
  30. implementation
  31. uses
  32. IdGlobal;
  33. { TIdLogDebug }
  34. procedure TIdLogDebug.LogReceivedData(const AText, AData: string);
  35. begin
  36. DebugOutput('Recv ' + AText + ': ' + AData); {Do not Localize}
  37. end;
  38. procedure TIdLogDebug.LogSentData(const AText, AData: string);
  39. begin
  40. DebugOutput('Sent ' + AText + ': ' + AData); {Do not Localize}
  41. end;
  42. procedure TIdLogDebug.LogStatus(const AText: string);
  43. begin
  44. DebugOutput('Stat ' + AText); {Do not Localize}
  45. end;
  46. end.