Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问wechaty可以关掉日志输出吗? #1638

Closed
mxue12138 opened this issue Nov 8, 2018 · 4 comments
Closed

请问wechaty可以关掉日志输出吗? #1638

mxue12138 opened this issue Nov 8, 2018 · 4 comments

Comments

@mxue12138
Copy link

mxue12138 commented Nov 8, 2018

如题,请问wechaty可以关掉日志输出吗?也就是

19:44:58 INFO Wechaty <default> start() v0.22.4 is starting...

或者

19:45:06 WARN PuppetPuppeteer roomRawPayload() currLength(-1) <= prevLength(10) ???
19:45:06 WARN PuppetPuppeteer roomRawPayload() currLength(-1) <= prevLength(9) ???
19:45:06 WARN PuppetPuppeteer roomRawPayload() currLength(-1) <= prevLength(7) ???
19:45:06 WARN PuppetPuppeteer roomRawPayload() currLength(-1) <= prevLength(36) ???
19:45:06 WARN PuppetPuppeteer roomRawPayload() currLength(-1) <= prevLength(28) ???
19:45:06 WARN PuppetPuppeteer roomRawPayload() currLength(-1) <= prevLength(4) ???
19:45:06 WARN PuppetPuppeteer roomRawPayload() currLength(-1) <= prevLength(153) ???

这一类的程序自带的日志输出。因为要部署到线上环境,所以不想要日志输出

@huan
Copy link
Member

huan commented Nov 8, 2018

Wechaty is using brolog for logging.

You can set

export WECHATY_LOG=silent

To disable logs.

See: https://www.npmjs.com/package/brolog#loglevelnewlevel

@mxue12138
Copy link
Author

非常感谢

@huan
Copy link
Member

huan commented Nov 11, 2018

Could you please close this issue if it had been resolved?

@mxue12138
Copy link
Author

不好意思,忘记了

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

No branches or pull requests

2 participants