HyperDbg Debugger
Loading...
Searching...
No Matches
HyperDbgHyperLogIntrinsics.h
Go to the documentation of this file.
1
11#pragma once
12
14// Enums //
16
28
30// Logging //
32
37#if UseDbgPrintInsteadOfUsermodeMessageTracking
38/* Use DbgPrint */
39# define Logformat, ...) \
40 DbgPrint("[+] Information (%s:%d) | " format "\n", \
41 __func__, \
42 __LINE__, \
43 __VA_ARGS__)
44
45# define LogWarning(format, ...) \
46 DbgPrint("[-] Warning (%s:%d) | " format "\n", \
47 __func__, \
48 __LINE__, \
49 __VA_ARGS__)
50
51# define LogError(format, ...) \
52 DbgPrint("[!] Error (%s:%d) | " format "\n", \
53 __func__, \
54 __LINE__, \
55 __VA_ARGS__); \
56 DbgBreakPoint()
57
62# define Log(format, ...) \
63 DbgPrint(format, __VA_ARGS__)
64
65#else
66
71# define LogInfo(format, ...) \
72 LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
73 UseImmediateMessaging, \
74 ShowSystemTimeOnDebugMessages, \
75 FALSE, \
76 "[+] Information (%s:%d) | " format "\n", \
77 __func__, \
78 __LINE__, \
79 __VA_ARGS__)
80
85# define LogInfoPriority(format, ...) \
86 LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
87 TRUE, \
88 ShowSystemTimeOnDebugMessages, \
89 TRUE, \
90 "[+] Information (%s:%d) | " format "\n", \
91 __func__, \
92 __LINE__, \
93 __VA_ARGS__)
94
99# define LogWarning(format, ...) \
100 LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_WARNING_MESSAGE, \
101 UseImmediateMessaging, \
102 ShowSystemTimeOnDebugMessages, \
103 TRUE, \
104 "[-] Warning (%s:%d) | " format "\n", \
105 __func__, \
106 __LINE__, \
107 __VA_ARGS__)
108
113# define LogError(format, ...) \
114 LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_ERROR_MESSAGE, \
115 UseImmediateMessaging, \
116 ShowSystemTimeOnDebugMessages, \
117 TRUE, \
118 "[!] Error (%s:%d) | " format "\n", \
119 __func__, \
120 __LINE__, \
121 __VA_ARGS__); \
122 if (DebugMode) \
123 DbgBreakPoint()
124
129# define Log(format, ...) \
130 LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
131 TRUE, \
132 FALSE, \
133 FALSE, \
134 format, \
135 __VA_ARGS__)
136
142# define LogSimpleWithTag(tag, isimmdte, buffer, len) \
143 LogCallbackSendMessageToQueue(tag, \
144 isimmdte, \
145 buffer, \
146 len, \
147 FALSE)
148
149#endif // UseDbgPrintInsteadOfUsermodeMessageTracking
150
155#define LogDebugInfo(format, ...) \
156 if (DebugMode) \
157 LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
158 UseImmediateMessaging, \
159 ShowSystemTimeOnDebugMessages, \
160 FALSE, \
161 "[+] Information (%s:%d) | " format "\n", \
162 __func__, \
163 __LINE__, \
164 __VA_ARGS__)
enum _LOG_TYPE LOG_TYPE
Types of log messages.
_LOG_TYPE
Types of log messages.
Definition HyperDbgHyperLogIntrinsics.h:22
@ LOG_ERROR
Definition HyperDbgHyperLogIntrinsics.h:25
@ LOG_INFO
Definition HyperDbgHyperLogIntrinsics.h:23
@ LOG_WARNING
Definition HyperDbgHyperLogIntrinsics.h:24