我正在为PostgreSQL开发C扩展库。我正在使用大量的ereport()调用来帮助未来的调试。PostgreSQL:ereport()的输出去哪里?
在我的代码使用的一个典型的例子是这样的:
ereport(NOTICE, (errmsg("[%s]: Returned nonzero result (%d).", (const char*)__FUNCTION__, ret)));
然而,当我看着我的/var/log/postgresql/postgresql-8.4-main.log的消息似乎并没有将出现在那里 - 我只能假设是db服务器守护进程的消息。
那么,我的日志消息在哪里存储?
顺便说一句,我在Ubuntu Linux(10.0.4)
http://www.postgresql.org/docs/current/static/runtime-config-logging.html – 2012-01-07 13:18:31