@@ -423,35 +423,35 @@ min_wal_size = 80MB
423423
424424# - Where to Log -
425425
426- log_destination = 'stderr ' # Valid values are combinations of
426+ log_destination = 'jsonlog ' # Valid values are combinations of
427427 # stderr, csvlog, syslog, and eventlog,
428428 # depending on platform. csvlog
429429 # requires logging_collector to be on.
430430
431431# This is used when logging to stderr:
432- # logging_collector = on # Enable capturing of stderr and csvlog
432+ logging_collector = on # Enable capturing of stderr and csvlog
433433 # into log files. Required to be on for
434434 # csvlogs.
435435 # (change requires restart)
436436
437437# These are only used if logging_collector is on:
438- log_directory = 'pg_log' # directory where log files are written,
438+ log_directory = '/var/log/ pg_log' # directory where log files are written,
439439 # can be absolute or relative to PGDATA
440- log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
440+ log_filename = 'postgresql-%Y-%m-%d_%H-%M' # log file name pattern,
441441 # can include strftime() escapes
442442log_file_mode = 0644 # creation mode for log files,
443443 # begin with 0 to use octal notation
444- # log_truncate_on_rotation = off # If on, an existing log file with the
444+ log_truncate_on_rotation = on # If on, an existing log file with the
445445 # same name as the new log file will be
446446 # truncated rather than appended to.
447447 # But such truncation only occurs on
448448 # time-driven rotation, not on restarts
449449 # or size-driven rotation. Default is
450450 # off, meaning append to existing files
451451 # in all cases.
452- # log_rotation_age = 1d # Automatic rotation of logfiles will
452+ log_rotation_age = '4min' # Automatic rotation of logfiles will
453453 # happen after that time. 0 disables.
454- # log_rotation_size = 10MB # Automatic rotation of logfiles will
454+ log_rotation_size = 0 # Automatic rotation of logfiles will
455455 # happen after that much log output.
456456 # 0 disables.
457457
@@ -524,7 +524,7 @@ log_min_duration_statement = 0 # -1 is disabled, 0 logs all statements
524524#log_checkpoints = off
525525#log_connections = off
526526#log_disconnections = off
527- log_duration = on
527+ # log_duration = on
528528#log_error_verbosity = default # terse, default, or verbose messages
529529#log_hostname = off
530530log_line_prefix= '%m [%p] %d %a %u %h %c ' # special values:
@@ -556,7 +556,7 @@ log_line_prefix= '%m [%p] %d %a %u %h %c ' # special values:
556556#log_parameter_max_length_on_error = 0 # when logging an error, limit logged
557557 # bind-parameter values to N bytes;
558558 # -1 means print in full, 0 disables
559- log_statement = 'all' # none, ddl, mod, all
559+ # log_statement = 'all' # none, ddl, mod, all
560560#log_replication_commands = off
561561#log_temp_files = -1 # log temporary files equal or larger
562562 # than the specified size in kilobytes;
0 commit comments