Joe
Joe

Reputation: 3620

Watchman: where is the default log file?

Where does the build tool watchman store it's log file by default?

Upvotes: 16

Views: 4301

Answers (2)

anonymous
anonymous

Reputation: 1490

Check curent log file by default:

ps aux | grep watchman

mac 77620 0.0 0.0 2475836 672 ?? S< 2:26PM 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

Also, you are allowed to set your own log file.

watchman -o /tmp/log

see more:

watchman --help

-o, --logfile=PATH Specify path to logfile

Upvotes: 22

Joe
Joe

Reputation: 3620

Watchman places logs in a file named <STATEDIR>/<USER>.log, where STATEDIR is set at the time that you built watchman.

By default, STATEDIR is <PREFIX>/var/run/watchman/<USER>-state/log.

If you're running a homebrew build of watchman, you'll find the logs in a path named something like /usr/local/Cellar/watchman/3.2.0/var/run/watchman/<USER>.log.

Info taken from the docs at https://facebook.github.io/watchman/docs/troubleshooting.html#where-are-the-logs

Upvotes: 6

Related Questions