QLoggingCategory - logging to file



  • Hi, how to redirect logging output to file?

    Q_DECLARE_LOGGING_CATEGORY(CAT)
    Q_LOGGING_CATEGORY(CAT, "cat")
    ...
    qCDebug(CAT) << "My message";
    

    Now, it displays in Qt Creator's Application Output window.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.