olav said:I know there is /usr/bin/logger, but I can only get it to log to syslog. How can I use it to log to a custom file?
That's not a 'hack', that's the proper way to redirect output.Or should I "hack it" like this:
Code:echo "1 april 2012 12:00 -> some text" >> /var/log/mylogfile
ipmon_flags="-Ds -L4"
log_destination = 'syslog'
syslog_facility = 'LOCAL5'
syslog_ident = 'pg5432'
local0.* -/var/log/local/local0.log
local1.* -/var/log/local/local1.log
local3.* -/var/log/local/local2.log
local3.* -/var/log/local/local3.log
local4.* -/var/log/local/local4.log
local5.* -/var/log/local/local5.log
local6.*;mail.none -/var/log/local/local6.log
local7.* -/var/log/local/local7.log
!ipmon
*.* -/var/log/ipfilter.log
!pg5432
*.* -/var/log/db/pg5432.log
/var/log/db/pg5432.log 5432:5432 640 99 4096 * ZC