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
16
17#ifndef Util_LoggingSubsystem_INCLUDED
18#define Util_LoggingSubsystem_INCLUDED
19
20
21#include "Poco/Util/Util.h"
22#include "Poco/Util/Subsystem.h"
23
24
25namespace Poco {
26namespace Util {
27
28
29class Util_API LoggingSubsystem: public Subsystem
30 /// The LoggingSubsystem class initializes the logging
31 /// framework using the LoggingConfigurator.
32 ///
33 /// It also sets the Application's logger to
34 /// the logger specified by the "application.logger"
35 /// property, or to "Application" if the property
36 /// is not specified.
37{
38public:
39 LoggingSubsystem();
40 const char* name() const;
41
42protected:
43 void initialize(Application& self);
44 void uninitialize();
45 ~LoggingSubsystem();
46};
47
48
49} } // namespace Poco::Util
50
51
52#endif // Util_LoggingSubsystem_INCLUDED
53