Debugging "The Installer encountered an error that caused the installation to fail."? While trying to install a PKG installer package, I've run into an issue where it refuses to finish installing.
The PKG almost finishes, but ends with the following error, and does not finish installing.

The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

The macOS version is the latest and a fresh install, and it is the latest version of the software, but I'm not particularly interested in my specific case, as I already chanced upon a workaround. I'm mostly interested in debugging why it fails to install.
Is there any way to debug a failed Installer package to find out anything about why it failed?
I tried checking Console, but didn't find anything. I also tried running Installer.app by the command line in the hopes it would give me something to go on.
/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer

Unfortunately, it just repeated the message in Terminal.
2017-03-10 14:02:45.426 Installer[654:7354] The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

I was hoping to be able to find out something more about why it is failing. Just telling a manufacture, &quot;it just doesn't finish installing on my machine&quot; really doesn't seem very productive if there is no way to figure out why.
Aha! It turns out the log for the installer can be found in the application menu.

Window -> Installer Log (⌘ + L)



You may need to set the log window to Show All Logs to see all the relevant information: