-
-
Notifications
You must be signed in to change notification settings - Fork 863
/
logoutput.h
59 lines (47 loc) · 1.19 KB
/
logoutput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#ifndef LOGOUTPUT_H
#define LOGOUTPUT_H
namespace cura {
/*
* \brief Increase verbosity level by 1.
*/
void increaseVerboseLevel();
/*
* \brief Enable logging the current slicing progress to the log.
*/
void enableProgressLogging();
/*
* \brief Report an error message.
*
* This is always reported, regardless of verbosity level.
*/
void logError(const char* fmt, ...);
/*
* \brief Report a warning message.
*
* Always reported, regardless of verbosity level.
*/
void logWarning(const char* fmt, ...);
/*
* \brief Report a message if the verbosity level is 1 or higher.
*/
void log(const char* fmt, ...);
/*
* \brief Log a message, regardless of verbosity level.
*/
void logAlways(const char* fmt, ...);
/*
* \brief Log a debugging message.
*
* The message is only logged if the verbosity level is 2 or higher.
*/
void logDebug(const char* fmt, ...);
/*
* \brief Report the progress in the log.
*
* Only works if ``enableProgressLogging()`` has been called.
*/
void logProgress(const char* type, int value, int maxValue, float percent);
} //namespace cura
#endif //LOGOUTPUT_H