LoggingSubsystem.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // LoggingSubsystem.h
  3. //
  4. // Library: Util
  5. // Package: Application
  6. // Module: LoggingSubsystem
  7. //
  8. // Definition of the LoggingSubsystem class.
  9. //
  10. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #ifndef Util_LoggingSubsystem_INCLUDED
  16. #define Util_LoggingSubsystem_INCLUDED
  17. #include "Poco/Util/Util.h"
  18. #include "Poco/Util/Subsystem.h"
  19. namespace Poco {
  20. namespace Util {
  21. class Util_API LoggingSubsystem: public Subsystem
  22. /// The LoggingSubsystem class initializes the logging
  23. /// framework using the LoggingConfigurator.
  24. ///
  25. /// It also sets the Application's logger to
  26. /// the logger specified by the "application.logger"
  27. /// property, or to "Application" if the property
  28. /// is not specified.
  29. {
  30. public:
  31. LoggingSubsystem();
  32. const char* name() const;
  33. protected:
  34. void initialize(Application& self);
  35. void uninitialize();
  36. ~LoggingSubsystem();
  37. };
  38. } } // namespace Poco::Util
  39. #endif // Util_LoggingSubsystem_INCLUDED