Guest User

Untitled

a guest
Jun 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. #---------------------------------------------------------------------------
  2. # ERROR REPORTING AND LOGGING
  3. #---------------------------------------------------------------------------
  4.  
  5. # - Where to Log -
  6.  
  7. log_destination = 'stderr' # Valid values are combinations of
  8. # stderr, syslog and eventlog,
  9. # depending on platform.
  10.  
  11. # This is used when logging to stderr:
  12. redirect_stderr = on # Enable capturing of stderr into log
  13. # files
  14.  
  15. # These are only used if redirect_stderr is on:
  16. #log_directory = '/var/log/postgresql' # Directory where log files are written
  17. # Can be absolute or relative to PGDATA
  18. #log_filename = 'postgresql-%Y-%m-%d.log' # Log file name pattern.
  19. # Can include strftime() escapes
  20. #log_truncate_on_rotation = off # If on, any existing log file of the same
  21. # name as the new log file will be
  22. # truncated rather than appended to. But
  23. # such truncation only occurs on
  24. # time-driven rotation, not on restarts
  25. # or size-driven rotation. Default is
  26. # off, meaning append to existing files
  27. # in all cases.
  28. #log_rotation_age = 1440 # Automatic rotation of logfiles will
  29. # happen after so many minutes. 0 to
  30. # disable.
  31. #log_rotation_size = 10240 # Automatic rotation of logfiles will
  32. # happen after so many kilobytes of log
  33. # output. 0 to disable.
  34.  
  35. # These are relevant when logging to syslog:
  36. #syslog_facility = 'LOCAL0'
  37. #syslog_ident = 'postgres'
  38.  
  39.  
  40. # - When to Log -
  41.  
  42. #client_min_messages = notice # Values, in order of decreasing detail:
  43. # debug5
  44. # debug4
  45. # debug3
  46. # debug2
  47. # debug1
  48. # log
  49. # notice
  50. # warning
  51. # error
  52.  
  53. #log_min_messages = notice # Values, in order of decreasing detail:
  54. # debug5
  55. # debug4
  56. # debug3
  57. # debug2
  58. # debug1
  59. # info
  60. # notice
  61. # warning
  62. # error
  63. # log
  64. # fatal
  65. # panic
  66.  
  67. #log_error_verbosity = default # terse, default, or verbose messages
  68.  
  69. log_min_error_statement = error # Values in order of increasing severity:
  70. # debug5
  71. # debug4
  72. # debug3
  73. # debug2
  74. # debug1
  75. # info
  76. # notice
  77. # warning
  78. # error
  79. # panic(off)
  80.  
  81. #log_min_duration_statement = 0 # -1 is disabled, 0 logs all statements
  82. # and their durations, in milliseconds.
  83.  
  84. #silent_mode = off # DO NOT USE without syslog or
  85. # redirect_stderr
  86.  
  87. # - What to Log -
  88.  
  89. #debug_print_parse = off
  90. #debug_print_rewritten = off
  91. #debug_print_plan = off
  92. #debug_pretty_print = off
  93. log_connections = on
  94. #log_disconnections = off
  95. log_duration = on
  96. #log_line_prefix = '%x ' # Special values:
  97. # %u = user name
  98. # %d = database name
  99. # %r = remote host and port
  100. # %h = remote host
  101. # %p = PID
  102. # %t = timestamp (no milliseconds)
  103. # %m = timestamp with milliseconds
  104. # %i = command tag
  105. # %c = session id
  106. # %l = session line number
  107. # %s = session start timestamp
  108. # %x = transaction id
  109. # %q = stop here in non-session
  110. # processes
  111. # %% = '%'
  112. # e.g. '<%u%%%d> '
  113. log_statement = 'all' # none, mod, ddl, all
  114. #log_hostname = off
Add Comment
Please, Sign In to add comment