Skip to content
Huan LI edited this page Aug 13, 2018 · 4 revisions

Wechaty use npmlog Brolog to output log message. You can set log level by environment variable WECHATY_LOG to show log message.

the environment variable WECHATY_LOG values:

  1. silly
  2. verbose
  3. info <- the default level
  4. warn
  5. error
  6. silent for disable logging

Linux/Darwin(OSX/Mac):

$ export WECHATY_LOG=verbose

Win32:

set WECHATY_LOG=verbose

Tips: You may want to have more scroll buffer size in your CMD window in Windows.

mode con lines=32766

http://stackoverflow.com/a/8775884/1123955