loggerrepository.cpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /******************************************************************************
  2. *
  3. * package: Log4Qt
  4. * file: loggerrepository.cpp
  5. * created: September 2007
  6. * author: Martin Heinrich
  7. *
  8. *
  9. * Copyright 2007 Martin Heinrich
  10. *
  11. * Licensed under the Apache License, Version 2.0 (the "License");
  12. * you may not use this file except in compliance with the License.
  13. * You may obtain a copy of the License at
  14. *
  15. * http://www.apache.org/licenses/LICENSE-2.0
  16. *
  17. * Unless required by applicable law or agreed to in writing, software
  18. * distributed under the License is distributed on an "AS IS" BASIS,
  19. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. * See the License for the specific language governing permissions and
  21. * limitations under the License.
  22. *
  23. ******************************************************************************/
  24. /******************************************************************************
  25. * Dependencies
  26. ******************************************************************************/
  27. #include "log4qt/loggerrepository.h"
  28. #include <QtCore/QDebug>
  29. namespace Log4Qt
  30. {
  31. /**************************************************************************
  32. * Declarations
  33. **************************************************************************/
  34. /**************************************************************************
  35. * C helper functions
  36. **************************************************************************/
  37. /**************************************************************************
  38. * Class implementation: LoggerRepository
  39. **************************************************************************/
  40. /**************************************************************************
  41. * Implementation: Operators, Helper
  42. **************************************************************************/
  43. #ifndef QT_NO_DEBUG_STREAM
  44. QDebug operator<<(QDebug debug,
  45. const LoggerRepository &rLoggerRepository)
  46. {
  47. return rLoggerRepository.debug(debug);
  48. }
  49. #endif // QT_NO_DEBUG_STREAM
  50. } // namespace Log4Qt