PDA

View Full Version : Postgres logging and QtCreator



feraudyh
10th September 2010, 17:21
Hello,
I'm using a combination of Postgres and Qt. I dont know much about when Postgres creates a log file by default but it's supposed to send its log to stderr.
Does QTCreator allow for visualisation of output on stderr?

wysota
10th September 2010, 19:31
I dont know much about when Postgres creates a log file by default but it's supposed to send its log to stderr.
But probably the server is sending the log to its stderr, not the client. Right? Creator does not run your server. And it outputs stderr from your application by default.

feraudyh
13th September 2010, 15:17
In my case both are on the same machine

wysota
13th September 2010, 15:19
In my case both are on the same machine

But they are different processes. Creator won't look into the server process (it is probably owned by a completely different user anyway).

feraudyh
14th September 2010, 17:58
Now strangely enough today I did see messages from PostgresSQl inside my application output pane.
Was it a case of using the right debug level?
In any case when one is overworked one makes mistakes.
Consider the case closed and thank you for your time.

wysota
14th September 2010, 18:29
It's all a matter of how you configure PostgreSQL. If it sends messages to the client, the client will receive them but the client itself cannot fetch them from the server.