Setting logging

You can do this on the command-line to postmaster or set it in postgresql.conf in the data directory (examples below)

# This is a comment
log_connections = yes
syslog = 2
  

You can log to syslog, stdout etc. See DEBUG_LEVEL etc for more info adm. You will need to consult the manual page for your syslogger to find out how to configure that end of things.