--- postgresql-9.5.15/src/backend/utils/misc/postgresql.conf.sample 2018-11-05 21:49:29.000000000 +0000 +++ postgresql-9.5.15/src/backend/utils/misc/postgresql.conf.sample 2018-12-03 13:32:36.483403000 +0000 @@ -315,7 +315,7 @@ # - Where to Log - -#log_destination = 'stderr' # Valid values are combinations of +log_destination = 'syslog' # Valid values are combinations of # stderr, csvlog, syslog, and eventlog, # depending on platform. csvlog # requires logging_collector to be on. @@ -348,8 +348,8 @@ # 0 disables. # These are relevant when logging to syslog: -#syslog_facility = 'LOCAL0' -#syslog_ident = 'postgres' +syslog_facility = 'LOCAL0' +syslog_ident = 'postgres-9.5' # This is only relevant when logging to eventlog (win32): # (change requires restart) @@ -409,12 +409,12 @@ #debug_print_plan = off #debug_pretty_print = on #log_checkpoints = off -#log_connections = off -#log_disconnections = off +log_connections = on +log_disconnections = on #log_duration = off #log_error_verbosity = default # terse, default, or verbose messages #log_hostname = off -#log_line_prefix = '' # special values: +log_line_prefix = '%m [%p] %q%h/%a %u/%d ' # special values: # %a = application name # %u = user name # %d = database name