Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

log format optimization #23

Closed
humiaozuzu opened this issue Nov 6, 2016 · 3 comments
Closed

log format optimization #23

humiaozuzu opened this issue Nov 6, 2016 · 3 comments

Comments

@humiaozuzu
Copy link

humiaozuzu commented Nov 6, 2016

before

2016/10/31 09:05:27:688  Adapter socket <DirectAdapter host:m.kuaidi100.com port:80)> connected to remote with response <ConnectResponse>.

after

2016/10/31 09:05:27:663 <INFO> [DirectAdapter-1] Connection established: 123.59.41.31:80

使用的 Adapter 和线程id放在前面,包含日志的level,日志语句更言简意赅,用户看的时候会更方便一些。

@zhuhaow
Copy link
Owner

zhuhaow commented Nov 7, 2016

那就自己写Observer自己写log,本来就不是设计为给用户看的,都叫debug了

@zhuhaow zhuhaow closed this as completed Nov 7, 2016
@humiaozuzu
Copy link
Author

给开发者看,格式弄好一点,看起来也方便。。。

@zhuhaow
Copy link
Owner

zhuhaow commented Nov 7, 2016

大家自由选择了,这个有空会去优化一下,现在懒得弄了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants