From 4a94ea30e340d279f0bb28ea8b827184fff64d8f Mon Sep 17 00:00:00 2001 From: aceld Date: Wed, 24 Apr 2019 18:30:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3zinx.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index decc1c2..b003c86 100644 --- a/README.md +++ b/README.md @@ -157,11 +157,13 @@ func main() { ### Zinx配置文件 ```json { - "Name":"Zinx Game", - "Host":"0.0.0.0", - "TcpPort":8999, - "MaxConn":3000, - "WorkerPoolSize":10 + "Name":"zinx v-0.10 demoApp", + "Host":"127.0.0.1", + "TcpPort":7777, + "MaxConn":3, + "WorkerPoolSize":10, + "LogDir": "./mylog", + "LogFile":"zinx.log" } ``` @@ -175,6 +177,10 @@ func main() { `WorkerPoolSize`:工作任务池最大工作Goroutine数量 +`LogDir`: 日志文件夹 + +`LogFile`: 日志文件名称(如果不提供,则日志信息打印到Stderr) + ### I.服务器模块Server ```go