Watchman:默认日志文件在哪里?

时间:2014-12-31 15:55:22

标签: build build-process

默认情况下,构建工具watchman在哪里存储它的日志文件?

2 个答案:

答案 0 :(得分:9)

默认情况下检查curent日志文件:

ps aux | grep watchman

mac 77620 0.0 0.0 2475836 672 ?? S< 2:26 PM 0:00.23 /usr/local/Cellar/watchman/4.7.0/libexec/bin/watchman --foreground - logfile = / usr / local / var / run / watchman / mac-state / log --log-level = 1 - sockname = / usr / local / var / run / watchman / mac-state / sock - statefile = / usr / local / var / run / watchman / mac-state / state - pidfile = / usr / local / var / run / watchman / mac-state / pid

此外,您可以设置自己的日志文件。

watchman -o /tmp/log

了解更多信息:

watchman --help

-o, - logfile = PATH指定日志文件的路径

答案 1 :(得分:5)

  

Watchman将日志放在名为<STATEDIR>/<USER>.log的文件中,其中STATEDIR在您建立守望者时设置。

默认情况下,STATEDIR<PREFIX>/var/run/watchman/<USER>-state/log

  

如果您正在运行一个自制的守望者版本,那么您将在名为/usr/local/Cellar/watchman/3.2.0/var/run/watchman/<USER>.log的路径中找到日志。

来自https://facebook.github.io/watchman/docs/troubleshooting.html#where-are-the-logs

的文档的信息
相关问题