ACF $AcfVersion:0$
CConsoleLogComp.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// ACF includes
8
9
10namespace ilog
11{
12
13
82{
83public:
85
86 I_BEGIN_COMPONENT(CConsoleLogComp);
87 I_END_COMPONENT;
88
89protected:
90 // reimplemented (CStreamLogCompBase)
91 virtual void WriteText(const QString& text, istd::IInformationProvider::InformationCategory category) override;
92
93private:
94 void SetConsoleColor(istd::IInformationProvider::InformationCategory category);
95};
96
97
98} // namespace ilog
99
100
101
Console logging component with colored output.
virtual void WriteText(const QString &text, istd::IInformationProvider::InformationCategory category) override
Write a text line to the output stream.
CStreamLogCompBase BaseClass
Base class for stream-based logging components.
InformationCategory
Category of information.
This namespace contains implementations for the logging functionality.