You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.8 KiB

  1. // Module: Log4CPLUS
  2. // File: nullappender.cxx
  3. // Created: 6/2003
  4. // Author: Tad E. Smith
  5. //
  6. //
  7. // Copyright 2003-2013 Tad E. Smith
  8. //
  9. // Licensed under the Apache License, Version 2.0 (the "License");
  10. // you may not use this file except in compliance with the License.
  11. // You may obtain a copy of the License at
  12. //
  13. // http://www.apache.org/licenses/LICENSE-2.0
  14. //
  15. // Unless required by applicable law or agreed to in writing, software
  16. // distributed under the License is distributed on an "AS IS" BASIS,
  17. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. // See the License for the specific language governing permissions and
  19. // limitations under the License.
  20. #include <log4cplus/nullappender.h>
  21. #include <log4cplus/thread/syncprims-pub-impl.h>
  22. namespace log4cplus
  23. {
  24. ///////////////////////////////////////////////////////////////////////////////
  25. // NullAppender ctors and dtor
  26. ///////////////////////////////////////////////////////////////////////////////
  27. NullAppender::NullAppender()
  28. {
  29. }
  30. NullAppender::NullAppender(const helpers::Properties& properties)
  31. : Appender(properties)
  32. {
  33. }
  34. NullAppender::~NullAppender()
  35. {
  36. destructorImpl();
  37. }
  38. ///////////////////////////////////////////////////////////////////////////////
  39. // NullAppender public methods
  40. ///////////////////////////////////////////////////////////////////////////////
  41. void
  42. NullAppender::close()
  43. {
  44. }
  45. ///////////////////////////////////////////////////////////////////////////////
  46. // NullAppender protected methods
  47. ///////////////////////////////////////////////////////////////////////////////
  48. // This method does not need to be locked since it is called by
  49. // doAppend() which performs the locking
  50. void
  51. NullAppender::append(const spi::InternalLoggingEvent&)
  52. {
  53. }
  54. } // namespace log4cplus