Results 1 to 3 of 3

Thread: advice on logging framework and packaging

  1. #1

    Default advice on logging framework and packaging

    All,

    I have just started to use QT. I would like to know if QT provides any logging framework.
    qDebug writes to console. Can we extend qDebug into a logging framework?

    Since I come from a java background, I was wondering if QT has any package/folder structure?
    It appears QT creator displays files individually, as the prohject becomes bigger and bigger
    it becomes tedious to maintain project structure.

    Also is there any unit testing framework recommended by QT.

    Any advice on the above issues will be much appreciated.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: advice on logging framework and packaging

    Quote Originally Posted by angeshwar View Post
    I would like to know if QT provides any logging framework.
    qDebug writes to console. Can we extend qDebug into a logging framework?
    The Qt Extension Library offers QxtLogger.

    Also is there any unit testing framework recommended by QT.
    See QTestLib
    J-P Nurmi

  3. #3
    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: advice on logging framework and packaging

    Quote Originally Posted by angeshwar View Post
    Can we extend qDebug into a logging framework?
    Yes. See qInstallMsgHandler().

    Since I come from a java background, I was wondering if QT has any package/folder structure?
    Nope. You can use log4cpp if you want.

    It appears QT creator displays files individually, as the prohject becomes bigger and bigger
    it becomes tedious to maintain project structure.
    Recent versions of Creator group files by directories. And you can always have subprojects (subdirs template for QMake) for functionality you use to provide additional groupping.

    Also is there any unit testing framework recommended by QT.
    Yes, see QTestLib.
    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.


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.