Commit 8c03630a by 孙龙

Update README.md

parent 08a83b90
Showing with 19 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,20 @@ config.toml ...@@ -13,3 +14,20 @@ 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