.logclose command
More...
#include "pch.h"
|
BOOLEAN | g_LogOpened |
| Shows whether the '.logopen' command is executed and the log file is open or not.
|
|
ofstream | g_LogOpenFile |
| The object of log file ('.logopen' command)
|
|
.logclose command
- Author
- Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
- Version
- 0.1
- Date
- 2020-07-16
- Copyright
- This project is released under the GNU Public License v3.
◆ CommandLogclose()
VOID CommandLogclose |
( |
vector< string > | SplitCommand, |
|
|
string | Command ) |
.logclose command handler
- Parameters
-
- Returns
- VOID
42{
43 if (SplitCommand.size() != 1)
44 {
47 return;
48 }
50 {
51 ShowMessages(
"there is no opened log, did you use '.logopen'? \n");
52 return;
53 }
54
55
56
57
58 time_t t = time(NULL);
59 struct tm tm = *localtime(&t);
61 "%02d:%02d:%02d)\n",
62 tm.tm_year + 1900,
63 tm.tm_mon + 1,
64 tm.tm_mday,
65 tm.tm_hour,
66 tm.tm_min,
67 tm.tm_sec);
68
69
70
72
73
74
75
77}
#define FALSE
Definition BasicTypes.h:54
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
BOOLEAN g_LogOpened
Shows whether the '.logopen' command is executed and the log file is open or not.
Definition globals.h:478
ofstream g_LogOpenFile
The object of log file ('.logopen' command)
Definition globals.h:484
VOID CommandLogcloseHelp()
help .logclose command
Definition logclose.cpp:26
◆ CommandLogcloseHelp()
VOID CommandLogcloseHelp |
( |
| ) |
|
help .logclose command
- Returns
- VOID
27{
28 ShowMessages(
".logclose : closes the previously opened log.\n\n");
29
31}
◆ g_LogOpened
Shows whether the '.logopen' command is executed and the log file is open or not.
◆ g_LogOpenFile
The object of log file ('.logopen' command)