I would like to take a look at the PostgreSQL log files to see what my app writes to them but I can't find them.
Any ideas?
I would like to take a look at the PostgreSQL log files to see what my app writes to them but I can't find them.
Any ideas?
On OS X, if you're using the EnterpriseDB installation of PostgreSQL, your log files will be in
/Library/PostgreSQL/8.4/data/pg_log
Of course, you'll want to substitute 8.4 for whichever version number you're running.
The
plist
used to launch your Postgres on boot may also set the logfile:So in this case,
/usr/local/var/postgres/server.log
.Postgresapp 9.3.5.1 and later keep a server log. The log is inside the data directory, named postgres-server.log.
On OSX Homebrew installation the log can be found at:
or
(First one is version < 9.6 and second one is version >= 9.6 of PostgreSQL)
Look in /var/log/pg_log/ folder
Just ask your database:
In my case, it's in "/Library/PostgreSQL/8.4/data/pg_log"