Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8c03630a
authored
Jan 02, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update README.md
parent
08a83b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletions
README.md
README.md
View file @
8c03630a
异步任务处理 消息处理
异步任务处理 消息处理
配置文件修改:复制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)**
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment