I have Postgres configuration with LOGFILE defined in the bash script /etc/rc.d/init.d/postgresql
by the option -l ${LOGFILE}
Log gives the following output :
2013-06-07 11:28:18 EDT rentgrowLOG: statement: select count(*) from (select * from results limit 1) test
2013-06-07 11:28:18 EDT rentgrowLOG: duration: 0.333 ms
This output is not readable by pgfouine.php – the error is: “pgFouine did not find any valid PostgreSQL log line in your log file:”
I found also that my changes in postgresql.conf do not affect the output at all.
How prepare a Postgres log file readable by pgfouine.php?