Open the postgresql.conf config file:
$> mate /usr/local/var/postgres/postgresql.conf
Uncomment the line with 'log_destination' and set it to 'syslog'
log_destination = 'syslog'
Open the syslog config:
# Put this in lib/current_controller_and_action.rb | |
module Padrino | |
module Rendering | |
module InstanceMethods | |
private | |
# Override render to store the current template being rendered so we can refer to it in the view | |
# This works with Padrino >= 0.9.10 | |
def render(engine, data=nil, options={}, locals={}, &block) | |
# If engine is a hash then render data converted to json |
Open the postgresql.conf config file:
$> mate /usr/local/var/postgres/postgresql.conf
Uncomment the line with 'log_destination' and set it to 'syslog'
log_destination = 'syslog'
Open the syslog config: