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