TNullAppenderUnit.pas 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. Copyright 2005-2006 Log4Delphi Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. }
  13. {*----------------------------------------------------------------------------
  14. Contains the TNullAppender class.
  15. @version 0.5
  16. @author <a href="mailto:tcmiller@users.sourceforge.net">Trevor Miller</a>
  17. ----------------------------------------------------------------------------}
  18. unit TNullAppenderUnit;
  19. {$ifdef fpc}
  20. {$mode objfpc}
  21. {$h+}
  22. {$endif}
  23. interface
  24. uses
  25. TAppenderUnit, TLoggingEventUnit;
  26. type
  27. {*----------------------------------------------------------------------------
  28. This appender does not do anything making it usefull for testing purposes.
  29. ----------------------------------------------------------------------------}
  30. TNullAppender = class (TAppender)
  31. public
  32. procedure Append(AEvent : TLoggingEvent); Override;
  33. end;
  34. implementation
  35. {*----------------------------------------------------------------------------
  36. Does absolutely nothing.
  37. ----------------------------------------------------------------------------}
  38. procedure TNullAppender.Append(AEvent : TLoggingEvent);
  39. begin
  40. end;
  41. end.