ACF $AcfVersion:0$
ILogger.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QString>
7
8// ACF includes
10
11
12namespace istd
13{
14
15
22class ILogger: virtual public IPolymorphic
23{
24public:
29 virtual bool IsLogConsumed(
31 const int* flagsPtr = NULL) const;
32
42 virtual bool SendLogMessage(
44 int id,
45 const QString& message,
46 const QString& messageSource,
47 int flags = 0) const;
48
49protected:
53 virtual void DecorateMessage(
55 int id,
56 int flags,
57 QString& message,
58 QString& messageSource) const;
59};
60
61
62// inline methods
63
65 const IInformationProvider::InformationCategory* /*categoryPtr*/,
66 const int* /*flagsPtr*/) const
67{
68 return false;
69}
70
71
74 int /*id*/,
75 const QString& /*message*/,
76 const QString& /*messageSource*/,
77 int /*flags*/) const
78{
79 return false;
80}
81
82
83// protected methods
84
87 int /*id*/,
88 int /*flags*/,
89 QString& /*message*/,
90 QString& /*messageSource*/) const
91{
92}
93
94
95} // namespace istd
96
97
98
99
InformationCategory
Category of information.
Common interface for classes sending some log info.
Definition ILogger.h:23
virtual bool SendLogMessage(IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const
Send any message to log.
Definition ILogger.h:72
virtual bool IsLogConsumed(const IInformationProvider::InformationCategory *categoryPtr=NULL, const int *flagsPtr=NULL) const
Check if any log message is consumed.
Definition ILogger.h:64
virtual void DecorateMessage(IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
Decorate message parts before outputting.
Definition ILogger.h:85
Base interface for all used interfaces and implementations.
#define NULL
Definition istd.h:74
Standard library.
Definition IComponent.h:17