Results 1 to 8 of 8

Thread: QT Logging class

  1. #1
    Join Date
    Apr 2010
    Location
    Porto Alegre, RS, Brazil
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question QT Logging class

    Hi folks

    Is there a logging class for QT? Something like "log4j"...

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QT Logging class

    You can use log4cxx. Or see qInstallMsgHandler to create your own one.

  3. #3
    Join Date
    Apr 2010
    Location
    Porto Alegre, RS, Brazil
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT Logging class

    How about log4Qt (http://log4qt.sourceforge.net/)?
    Is it good? does it affect the performance negatively in a noticeable way?

  4. #4
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT Logging class

    thanks a lot

  5. #5
    Join Date
    May 2010
    Posts
    11
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: QT Logging class

    No one using another class than QtDebug?
    Is the state of the art use this debug funciton (qDebug, qWarning, ...) in conjunction with a custom message handler for log to file system?
    I found very simple and useful this approach, but I think that a log function with message level is needed (i.e: qMessage() ).
    Thanks in advance,
    Stefano.

  6. #6
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT Logging class

    Beginner for learning.

  7. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT Logging class

    There is some work going on to get a more capable logging system into Qt. You might need to search the dev mailing list or git repo to find it.

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QT Logging class

    Category logging coming in Qt 5.2
    http://doc-snapshot.qt-project.org/q...gcategory.html

    Cheers,
    _

Similar Threads

  1. Logging Qt User Actions
    By Frank J. Lhota in forum Qt Programming
    Replies: 14
    Last Post: 30th May 2014, 21:36
  2. logging support!!
    By Raajesh in forum Qt Programming
    Replies: 1
    Last Post: 18th June 2008, 19:18
  3. Cross Platform Logging
    By skyphyr in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2006, 16:32
  4. logging and tracing in Qt
    By Artschi in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2006, 20:10

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.