Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watchman: where is the default log file?

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

like image 747
Joe Avatar asked Dec 31 '14 15:12

Joe


2 Answers

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

like image 86
anonymous Avatar answered Nov 12 '22 12:11

anonymous


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

like image 41
Joe Avatar answered Nov 12 '22 10:11

Joe