"brew formula" installation logs
Logs are stored in ~/Library/Logs/Homebrew.
You can browse this in Finder or using Console.app.



If you want to save your own log of an install, you can use…


brew install &lt;formula&gt; 2&gt;&amp;1 | tee install.log



Source: https://github.com/Homebrew/homebrew/issues/10430