title: How to change log directory location in postgresql 9.4?
body: <p>my current log_directory path is</p>
  
  <pre><code>**/opt/demo/PostgreSQL/9.4/data/pg_log**
  </code></pre>
  
  <p>I'm trying to change the log directory path to </p>
  
  <pre><code>**/logs/demo/**
  </code></pre>
  
  <p>The server won't start when i uncomment the log path and it starts only when its default.</p>
  
  <p>The <strong>postgresql.conf</strong> file looks like</p>
  
  <pre><code># ERROR REPORTING AND LOGGING
  #------------------------------------------------------------------------------
  
  # - Where to Log -
  
  log_destination = 'stderr'         # Valid values are combinations of
                                    # stderr, csvlog, syslog, and eventlog,
  # This is used when logging to stderr:
  logging_collector = on
  # These are only used if logging_collector is on:
  #log_directory = '/logs/etbos/demo/'  #directorywherelogfiles are written
  #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'  # log file name pattern,
  
  
  # These are relevant when logging to syslog:
  #syslog_facility = 'LOCAL0'
  #syslog_ident = 'postgres'
  
  # This is only relevant when logging to eventlog (win32):
  #event_source = 'PostgreSQL'
  </code></pre>