GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MessLogger/messlogger/main.cpp at master · CPythoner/MessLogger

Expand file tree

/

main.cpp

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
75 lines (61 loc) · 2.19 KB
/

main.cpp

Copy path

File metadata and controls

75 lines (61 loc) · 2.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// messlogger.cpp : 定义控制台应用程序的入口点。
//
#include <windows.h>
#include <tchar.h>
#include <iostream>
#include <thread>
#include "MessLogger.h"
using namespace std;
ENABLE_THREAD_SAFE
MessLogger *g_pLogger = MessLogger::GetInstance();
DWORD WINAPI log_thread(LPVOID);
VOID log_std_thread();
int _tmain(int argc, _TCHAR* argv[])
{
g_pLogger->Init(30, "\\logs\\log_%date.txt", MessLogger::LEVEL_ALL, true);
for (uint8_t i = 0; i < 10; i++)
{
thread t(log_std_thread);
t.detach();
}
for (uint8_t i = 0; i < 10; i++)
{
HANDLE hThread;
DWORD threadId;
hThread = CreateThread(NULL, 0, log_thread, 0, 0, &threadId); // 创建线程
Sleep(1000);
}
DLOG("DLOG TEST 调试 %d %s", 678, "i'm DLOG");
TLOG("TLOG TEST %d %s", 678, "i'm TLOG");
ILOG("ILOG TEST %d %s", 678, "i'm ILOG");
WLOG("WLOG TEST %d %s", 678, "i'm WLOG");
ELOG("ELOG TEST %d %s", 678, "i'm ELOG");
FLOG("ILOG TEST %d %s", 678, "i'm FLOG");
system("pause");
return 0;
}
DWORD WINAPI log_thread(LPVOID p)
{
for (int i = 0; i < 100; i++) {
DLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
TLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
ILOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
WLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
ELOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
FLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
LOG_LINE_BREAK();
}
return 0;
}
VOID log_std_thread()
{
for (int i = 0; i < 100; i++) {
DLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
TLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
ILOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
WLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
ELOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
FLOG("%d HELLOLKJLKSDFJLAKSJDFLKASJFLKJASDKLFJKL JASKLJDFKLASJDKF Dsafad的地方", i);
LOG_LINE_BREAK();
}
}
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.