Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Logging system in Qt.
Qt 6.11 is out! See what's new in the release blog

Logging system in Qt.

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 4 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello!
    Usually I am using my own solution for logging, but now researching about Qt-native logging. Is in Qt logging system included? I mean not qmessagelogger, I mean full featured logging system that allow to store logs and send it if need to server? I found some of them, but all of them 3d-part libs:

    • http://jpnaude.github.io/Qtilities/page_logging.html
    • http://log4qt.sourceforge.net or https://github.com/MEONMedical/Log4Qt
    • https://github.com/sfadiga/QLogger

    There are some examples of using qmessagelogger for storing logs to file:

    • https://evileg.com/en/post/154/

    What is the best way to store logs and send it in current Qt?

    beeckscheB JonBJ 2 Replies Last reply
    0
    • B bogong

      Hello!
      Usually I am using my own solution for logging, but now researching about Qt-native logging. Is in Qt logging system included? I mean not qmessagelogger, I mean full featured logging system that allow to store logs and send it if need to server? I found some of them, but all of them 3d-part libs:

      • http://jpnaude.github.io/Qtilities/page_logging.html
      • http://log4qt.sourceforge.net or https://github.com/MEONMedical/Log4Qt
      • https://github.com/sfadiga/QLogger

      There are some examples of using qmessagelogger for storing logs to file:

      • https://evileg.com/en/post/154/

      What is the best way to store logs and send it in current Qt?

      beeckscheB Offline
      beeckscheB Offline
      beecksche
      wrote on last edited by
      #2

      @bogong

      You can install your own message handler with qInstallMessageHandler.

      With this handler you're able to catch all messages and store them where ever you want.

      1 Reply Last reply
      5
      • B bogong

        Hello!
        Usually I am using my own solution for logging, but now researching about Qt-native logging. Is in Qt logging system included? I mean not qmessagelogger, I mean full featured logging system that allow to store logs and send it if need to server? I found some of them, but all of them 3d-part libs:

        • http://jpnaude.github.io/Qtilities/page_logging.html
        • http://log4qt.sourceforge.net or https://github.com/MEONMedical/Log4Qt
        • https://github.com/sfadiga/QLogger

        There are some examples of using qmessagelogger for storing logs to file:

        • https://evileg.com/en/post/154/

        What is the best way to store logs and send it in current Qt?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @bogong
        As @bogong says the Qt entry point to logging is qInstallMessageHandler. However, that/Qt in-built is not going to "send it if need to server" (whatever that server might be). You/someone would have to write code for anything like that.

        1 Reply Last reply
        1
        • T Offline
          T Offline
          Taytoo
          wrote on last edited by
          #4

          @bogong I'm in the same boat, which one did you end up using?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved