Headers relating exported functions from hyperlog project.
More...
Go to the source code of this file.
|
#define | LogInfo(format, ...) |
| Define log variables.
|
|
#define | LogInfoPriority(format, ...) |
| Log in the case of priority message.
|
|
#define | LogWarning(format, ...) |
| Log in the case of warning.
|
|
#define | LogError(format, ...) |
| Log in the case of error.
|
|
#define | Log(format, ...) |
| Log without any prefix.
|
|
#define | LogSimpleWithTag(tag, isimmdte, buffer, len) |
| Log without any prefix and bypass the stack problem (getting two temporary stacks in preparing phase)
|
|
#define | LogDebugInfo(format, ...) |
| Log, initialize boot information and debug information.
|
|
Headers relating exported functions from hyperlog project.
- Author
- Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
- Version
- 0.1
- Date
- 2023-01-15
- Copyright
- This project is released under the GNU Public License v3.
◆ Log
#define Log |
( |
| format, |
|
|
| ... ) |
Value:
format, \
__VA_ARGS__)
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
BOOLEAN LogCallbackPrepareAndSendMessageToQueue(UINT32 OperationCode, BOOLEAN IsImmediateMessage, BOOLEAN ShowCurrentSystemTime, BOOLEAN Priority, const char *Fmt,...)
routines callback for preparing and sending message to queue
Definition Callback.c:28
#define OPERATION_LOG_INFO_MESSAGE
Message logs id that comes from kernel-mode to user-mode.
Definition Constants.h:366
Log without any prefix.
129# define Log(format, ...) \
130 LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
131 TRUE, \
132 FALSE, \
133 FALSE, \
134 format, \
135 __VA_ARGS__)
◆ LogDebugInfo
#define LogDebugInfo |
( |
| format, |
|
|
| ... ) |
Value:
"[+] Information (%s:%d) | " format "\n", \
__func__, \
__LINE__, \
__VA_ARGS__)
#define DebugMode
Shows whether to show or not show the drivers debugging information and also enters debugger in debug...
Definition Configuration.h:64
#define ShowSystemTimeOnDebugMessages
Configures whether to show the current system time in the output of debug messages or not (only avail...
Definition Configuration.h:20
#define UseImmediateMessaging
Use immediate messaging (means that it sends each message when they received and do not accumulate th...
Definition Configuration.h:49
Log, initialize boot information and debug information.
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__)
◆ LogError
#define LogError |
( |
| format, |
|
|
| ... ) |
Value:
"[!] Error (%s:%d) | " format "\n", \
__func__, \
__LINE__, \
__VA_ARGS__); \
DbgBreakPoint()
#define OPERATION_LOG_ERROR_MESSAGE
Definition Constants.h:368
Log in the case of error.
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()
◆ LogInfo
#define LogInfo |
( |
| format, |
|
|
| ... ) |
Value:
"[+] Information (%s:%d) | " format "\n", \
__func__, \
__LINE__, \
__VA_ARGS__)
Define log variables.
Log, general
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__)
◆ LogInfoPriority
#define LogInfoPriority |
( |
| format, |
|
|
| ... ) |
Value:
"[+] Information (%s:%d) | " format "\n", \
__func__, \
__LINE__, \
__VA_ARGS__)
Log in the case of priority message.
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__)
◆ LogSimpleWithTag
#define LogSimpleWithTag |
( |
| tag, |
|
|
| isimmdte, |
|
|
| buffer, |
|
|
| len ) |
Value:
isimmdte, \
buffer, \
len, \
BOOLEAN LogCallbackSendMessageToQueue(UINT32 OperationCode, BOOLEAN IsImmediateMessage, CHAR *LogMessage, UINT32 BufferLen, BOOLEAN Priority)
routines callback for sending message to queue
Definition Callback.c:71
Log without any prefix and bypass the stack problem (getting two temporary stacks in preparing phase)
142# define LogSimpleWithTag(tag, isimmdte, buffer, len) \
143 LogCallbackSendMessageToQueue(tag, \
144 isimmdte, \
145 buffer, \
146 len, \
147 FALSE)
◆ LogWarning
#define LogWarning |
( |
| format, |
|
|
| ... ) |
Value:
"[-] Warning (%s:%d) | " format "\n", \
__func__, \
__LINE__, \
__VA_ARGS__)
#define OPERATION_LOG_WARNING_MESSAGE
Definition Constants.h:367
Log in the case of warning.
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__)
◆ LOG_TYPE
◆ _LOG_TYPE
Types of log messages.
Enumerator |
---|
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
22{
26
enum _LOG_TYPE LOG_TYPE
Types of log messages.
@ LOG_ERROR
Definition HyperDbgHyperLogIntrinsics.h:25
@ LOG_INFO
Definition HyperDbgHyperLogIntrinsics.h:23
@ LOG_WARNING
Definition HyperDbgHyperLogIntrinsics.h:24