Update postgres logs to use dates instead of days for log names
This commit is contained in:
parent
9b6adc5b90
commit
eca9c9dd98
1 changed files with 2 additions and 2 deletions
|
@ -304,11 +304,11 @@ logging_collector = on # Enable capturing of stderr and csvlog
|
||||||
# These are only used if logging_collector is on:
|
# These are only used if logging_collector is on:
|
||||||
log_directory = '../pg_log' # directory where log files are written,
|
log_directory = '../pg_log' # directory where log files are written,
|
||||||
# can be absolute or relative to PGDATA
|
# can be absolute or relative to PGDATA
|
||||||
log_filename = 'postgresql-%A.log' # log file name pattern,
|
log_filename = 'postgresql-%F.log' # log file name pattern,
|
||||||
# can include strftime() escapes
|
# can include strftime() escapes
|
||||||
log_file_mode = 0640 # creation mode for log files,
|
log_file_mode = 0640 # creation mode for log files,
|
||||||
# begin with 0 to use octal notation
|
# begin with 0 to use octal notation
|
||||||
log_truncate_on_rotation = on # If on, an existing log file with the
|
log_truncate_on_rotation = off # If on, an existing log file with the
|
||||||
# same name as the new log file will be
|
# same name as the new log file will be
|
||||||
# truncated rather than appended to.
|
# truncated rather than appended to.
|
||||||
# But such truncation only occurs on
|
# But such truncation only occurs on
|
||||||
|
|
Loading…
Add table
Reference in a new issue