More detailed error logging?

Started by CSNalmost 21 years ago3 messagesgeneral
Jump to latest
#1CSN
cool_screen_name90001@yahoo.com

Is it possible to have the database name, datetime,
and maybe even the query itself show up in pgsql's
error log?

Thanks,
CSN

__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

#2Richard Huxton
dev@archonet.com
In reply to: CSN (#1)
Re: More detailed error logging?

CSN wrote:

Is it possible to have the database name, datetime,
and maybe even the query itself show up in pgsql's
error log?

Plenty of options to log all sorts of info. See the manuals chapter
"16.4.6. Error Reporting and Logging" for details.

You can even increase detail settings in one particular connection using
SET ...

--
Richard Huxton
Archonet Ltd

#3Himanshu Baweja
himanshubaweja@yahoo.com
In reply to: Richard Huxton (#2)
Re: More detailed error logging?

check out
http://www.postgresql.org/docs/8.0/static/runtime-config.html

there are a couple of logging parameters.... which can log almost everything u want :)

Regards
Himanshu

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com