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