-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogging.cpp
More file actions
43 lines (34 loc) · 940 Bytes
/
Copy pathLogging.cpp
File metadata and controls
43 lines (34 loc) · 940 Bytes
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
/* runcpp2
Parameters:
LogText:
Optional: false
Variables:
LogSentence: "LogText is {LogText}"
Defines:
- "_CRT_SECURE_NO_WARNINGS=1"
- "LOG_SEN=\\\"{LogSentence}\\\""
# Uncomment this to log things below warning
# - "ssLOG_LEVEL=5"
Dependencies:
- Name: ssLogger
Platforms: [DefaultPlatform]
Source:
Git:
URL: "https://github.com/Neko-Box-Coder/ssLogger.git"
LibraryType: Header
IncludePaths: ["Include"]
*/
#include "ssLogger/ssLogInit.hpp"
#include "ssLogger/ssLog.hpp"
int main(int, char**)
{
ssLOG_LINE("Let's log something with different log levels!");
ssLOG_FATAL("Hello World");
ssLOG_ERROR("Hello World");
ssLOG_WARNING("Hello World");
ssLOG_LINE(LOG_SEN);
//You won't see the following logs since anything below warnings are evaluated to nothing
ssLOG_INFO("Hello World");
ssLOG_DEBUG("Hello World");
return 0;
}