Commit 4a022dd9 by 朱继来

Merge branch 'master' of http://119.23.72.7/sunlong_v5/golang-queue-server into…

Merge branch 'master' of http://119.23.72.7/sunlong_v5/golang-queue-server into zjl_send_email_20200102
parents a764050e 91a20744
Showing with 20 additions and 1 deletions
异步任务处理 消息处理 异步任务处理 消息处理
配置文件修改:复制config/comfig.toml.demo config/config.toml ###### 配置文件修改:
复制config/comfig.toml.demo config/config.toml
config.toml config.toml
...@@ -13,3 +14,21 @@ config.toml ...@@ -13,3 +14,21 @@ config.toml
type="direct" type="direct"
dns="amqp://guest:guest@192.168.2.232:5672/" dns="amqp://guest:guest@192.168.2.232:5672/"
###### 日志使用:
加载日志:
```go
logConfig := make(map[string]string)
logConfig["log_level"] = "ERROR"
logConfig["log_name"] = "orderSendPurchaseEmail"
logConfig["log_path"] = "logs"
logConfig["log_chan_size"] = "1000"
logger.InitLogger("file",logConfig)
logger.Init()
```
example:
**logger.Debug("receive from kafka, msg:%#v", message)**
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment