thread detach 완성
This commit is contained in:
12
Server/src/Chattering.log
Normal file
12
Server/src/Chattering.log
Normal file
@@ -0,0 +1,12 @@
|
||||
[2025-04-24 21:34:04.752] [Chattering Logger] [info] thread?
|
||||
[2025-04-24 21:34:04.752] [Chattering Logger] [info] Waiting for connection...
|
||||
[2025-04-24 21:34:24.926] [Chattering Logger] [info] thread?
|
||||
[2025-04-24 21:34:24.926] [Chattering Logger] [info] Waiting for connection...
|
||||
[2025-04-24 21:34:39.658] [Chattering Logger] [info] thread?
|
||||
[2025-04-24 21:34:39.658] [Chattering Logger] [info] Waiting for connection...
|
||||
[2025-04-24 21:34:48.422] [Chattering Logger] [info] Waiting for connection...
|
||||
[2025-04-24 21:34:48.422] [Chattering Logger] [info] thread?
|
||||
[2025-04-24 21:34:49.422] [Chattering Logger] [info] thread?
|
||||
[2025-04-24 21:35:32.526] [Chattering Logger] [info] thread?
|
||||
[2025-04-24 21:35:33.526] [Chattering Logger] [info] thread?
|
||||
[2025-04-24 21:35:33.526] [Chattering Logger] [info] Waiting for connection...
|
||||
8
Server/src/config.json
Normal file
8
Server/src/config.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"IP Version" : 6,
|
||||
"Listen Port" : 9010,
|
||||
"LogLevel" : 1,
|
||||
"LogfileCount" : 5,
|
||||
"LogfileName" : "Chattering.log",
|
||||
"LogfileSize" : 4294967295
|
||||
}
|
||||
@@ -41,6 +41,8 @@ int main() {
|
||||
|
||||
Chattr::Thread t1([]() {
|
||||
spdlog::info("thread?");
|
||||
sleep(1);
|
||||
spdlog::info("thread?");
|
||||
});
|
||||
|
||||
spdlog::info("Waiting for connection...");
|
||||
|
||||
Reference in New Issue
Block a user