From 9adb078831d9fe61a2f78b1950a366927992aab8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 8 Sep 2023 19:06:04 +0800 Subject: [PATCH] 1 --- constant.go | 2 ++ constant_unix.go | 2 ++ constant_windows.go | 2 ++ tglog.go | 4 ---- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/constant.go b/constant.go index 3be02e9..492dd70 100644 --- a/constant.go +++ b/constant.go @@ -11,3 +11,5 @@ const ( const MAX_NODE_ID = 8 const MAX_INSTANCE_ID = 500 + +const TGLOG_FILENAME = "log_%d_%s.log" diff --git a/constant_unix.go b/constant_unix.go index 7de33c5..8fb0852 100644 --- a/constant_unix.go +++ b/constant_unix.go @@ -5,4 +5,6 @@ package f5 const ( SYS_LOG_ROOT = "/data/logs/%s/logs/" + TGLOG_ROOT = "/data/logs/%s/upload/" + POLY_TGLOG_ROOT = "/data/logs/%s/%d/upload/" ) diff --git a/constant_windows.go b/constant_windows.go index a7a538f..e851ddc 100644 --- a/constant_windows.go +++ b/constant_windows.go @@ -5,4 +5,6 @@ package f5 const ( SYS_LOG_ROOT = "d:/linux_root/data/logs/%s/logs/" + TGLOG_ROOT = "d:/linux_root/data/logs/%s/upload/" + POLY_TGLOG_ROOT = "d:/linux_root/data/logs/%s/%d/upload/" ) diff --git a/tglog.go b/tglog.go index e849f14..f0199ca 100644 --- a/tglog.go +++ b/tglog.go @@ -8,10 +8,6 @@ import ( "time" ) -const TGLOG_ROOT = "/data/logs/%s/upload/" -const POLY_TGLOG_ROOT = "/data/logs/%s/%d/upload/" -const TGLOG_FILENAME = "log_%d_%s.log" - type tgLogMsgNode struct { gameId int32 jsonStr string