ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
CVLog.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - CloudViewer: www.cloudViewer.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.cloudViewer.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#pragma once
9
10
// Local
11
#include "
CVCoreLib.h
"
12
13
// system
14
#include <stdio.h>
15
16
#include <string>
17
18
// Qt
19
#include <QString>
20
22
25
class
CV_CORE_LIB_API
CVLog
{
26
public
:
28
virtual
~CVLog
() {}
29
31
static
CVLog
* TheInstance();
32
34
static
void
RegisterInstance(
CVLog
* logInstance);
35
37
39
static
void
EnableMessageBackup(
bool
state);
40
42
enum
MessageLevelFlags
{
43
LOG_VERBOSE = 0,
44
LOG_STANDARD = 1,
45
LOG_IMPORTANT = 2,
46
LOG_WARNING = 3,
47
LOG_ERROR = 4,
49
DEBUG_FLAG = 8
50
};
51
53
static
int
VerbosityLevel
();
54
56
58
static
void
SetVerbosityLevel
(
int
level);
59
61
static
void
LogMessage
(
const
QString& message,
int
level);
62
64
69
virtual
void
logMessage(
const
QString& message,
int
level) = 0;
70
72
75
static
bool
PrintVerbose(
const
char
*
format
, ...);
76
78
static
bool
PrintVerbose(
const
QString& message);
79
81
84
static
bool
Print(
const
char
*
format
, ...);
85
87
static
bool
Print(
const
QString& message);
88
90
93
static
bool
PrintHigh(
const
char
*
format
, ...);
94
96
static
bool
PrintHigh(
const
QString& message);
97
99
102
static
bool
PrintDebug(
const
char
*
format
, ...);
103
105
static
bool
PrintDebug(
const
QString& message);
106
108
111
static
bool
Warning(
const
char
*
format
, ...);
112
114
static
bool
Warning(
const
QString& message);
115
117
120
static
bool
WarningDebug(
const
char
*
format
, ...);
121
123
static
bool
WarningDebug(
const
QString& message);
124
126
129
static
bool
Error(
const
char
*
format
, ...);
130
132
static
bool
Error(
const
QString& message);
133
135
138
static
bool
ErrorDebug(
const
char
*
format
, ...);
139
141
static
bool
ErrorDebug(
const
QString& message);
142
};
cloudViewer::visualization::webrtc_server::LogMessage
static int LogMessage(const struct mg_connection *conn, const char *message)
Definition:
HttpServerRequestHandler.cpp:26
CVLog
Main log interface.
Definition:
CVLog.h:25
format
filament::Texture::InternalFormat format
Definition:
FilamentResourceManager.cpp:181
CVCoreLib.h
cloudViewer::utility::VerbosityLevel
VerbosityLevel
Definition:
Logging.h:97
CVLog::MessageLevelFlags
MessageLevelFlags
Message level.
Definition:
CVLog.h:42
cloudViewer::utility::SetVerbosityLevel
void SetVerbosityLevel(VerbosityLevel level)
Definition:
Logging.cpp:89
CVLog::~CVLog
virtual ~CVLog()
Destructor.
Definition:
CVLog.h:28
CV_CORE_LIB_API
#define CV_CORE_LIB_API
Definition:
CVCoreLibWin.h:15
core
include
CVLog.h
Generated on Wed Nov 18 2026 14:48:03 for ACloudViewer by
1.8.17