Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qtilities Logging
QtWS25 Last Chance

Qtilities Logging

Scheduled Pinned Locked Moved 3rd Party Software
4 Posts 2 Posters 1.5k Views
  • 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.
  • M Offline
    M Offline
    Maxxximo
    wrote on last edited by
    #1

    Hi all,
    I'm trying to use the Qtilities logging component in my application.
    Everything works fine if I log from the main thread, but if I log from another thread, like:

    LOG_TRACE ("Worker::init");
    

    nothing is actually being logged, and I see on the debugger output window:

    QObject::connect: Cannot queue arguments of type 'Logger::MessageType'
    (Make sure 'Logger::MessageType' is registered using qRegisterMetaType().)

    Any hints?

    Thanks in advance
    Massimo

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by mcosta
      #2

      Hi and welcome to devnet,

      I don't know about that library but the error message means your code (or the library) is using a custom type as argument of a SIGNAL/SLOT.

      Here you'll find information about that.

      You should check with the author(s) of the Library if you're using it in the right way

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Maxxximo
        wrote on last edited by
        #3

        Thanks for replying, but I already knew that :-)
        The library is definitely causing that.
        Apparently not so many people are using it, so I might consider using something else if I can't sort this out quickly. Finding a simple and STABLE, thread safe logging library is apparently a difficult task...

        M 1 Reply Last reply
        0
        • M Maxxximo

          Thanks for replying, but I already knew that :-)
          The library is definitely causing that.
          Apparently not so many people are using it, so I might consider using something else if I can't sort this out quickly. Finding a simple and STABLE, thread safe logging library is apparently a difficult task...

          M Offline
          M Offline
          mcosta
          wrote on last edited by
          #4

          @Maxxximo said:

          Finding a simple and STABLE, thread safe logging library is apparently a difficult task...

          We are using Log4Qt. It works pretty well (but you need to apply some code patch to build it with Qt5)

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          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