Results 1 to 6 of 6

Thread: Postgres logging and QtCreator

  1. #1
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Postgres logging and QtCreator

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Postgres logging and QtCreator

    Quote Originally Posted by feraudyh View Post
    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Postgres logging and QtCreator

    In my case both are on the same machine

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Postgres logging and QtCreator

    Quote Originally Posted by feraudyh View Post
    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).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Postgres logging and QtCreator

    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.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Postgres logging and QtCreator

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 8
    Last Post: 19th January 2010, 12:50
  2. Postgres
    By cya-st in forum Installation and Deployment
    Replies: 1
    Last Post: 7th October 2009, 13:27
  3. Replies: 0
    Last Post: 25th June 2008, 18:36
  4. listing the files that has been uploaded to postgres
    By aekilic in forum Qt Programming
    Replies: 2
    Last Post: 10th September 2007, 10:43
  5. problem with read blob from postgres db
    By zlatko in forum Qt Programming
    Replies: 4
    Last Post: 5th November 2006, 08:30

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.