Add logging. Use the normal PG ports.

This commit is contained in:
Dan Milne
2025-02-19 19:05:13 +11:00
parent 53195eb06c
commit 5dd89d3621
4 changed files with 28 additions and 4 deletions

View File

@@ -819,6 +819,14 @@ max_connections = 200 # (change requires restart)
# CUSTOMIZED OPTIONS
#------------------------------------------------------------------------------
## Logging
log_directory = '/var/log/postgresql'
logging_collector = on
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
log_truncate_on_rotation = on
log_rotation_age = 1d
log_rotation_size = 10MB
# Add settings for extensions here
# OS Type: linux