buildbuild-process

Watchman: where is the default log file?


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


Solution

  • 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