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. How to Log to a Server (like logentries, loggly...)

How to Log to a Server (like logentries, loggly...)

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 2.1k Views 4 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.
  • R Offline
    R Offline
    rafaelcgo
    wrote on last edited by
    #1

    Is there a way to get all logs from my application and send them to a log server, like Logentries? I would like to have access to my clients logs without asking them to submit their files.

    It's probably a simple question but couldn't find a solution for the problem.

    K 1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      I don't know any of these solutions but a quick look at logentries site shows they have a REST API, so you can use QNetworkAccessManager to send your logs.

      Btw. I hope you do inform your users somehow that you're spying on them?

      1 Reply Last reply
      2
      • R rafaelcgo

        Is there a way to get all logs from my application and send them to a log server, like Logentries? I would like to have access to my clients logs without asking them to submit their files.

        It's probably a simple question but couldn't find a solution for the problem.

        K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        @rafaelcgo

        Certainly this is possible The question is if you should do it without client's permission. You might not care if someone is sending off some data to another place, but your customers might. And for sure I would!

        With permission of customers I would consider to use ftp solutions or something with SQL.

        If the customers are smart enough to run a virus checker, they will find out most likely, that you are trying to get the data out of their computer.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        2
        • R Offline
          R Offline
          rafaelcgo
          wrote on last edited by
          #4

          Thanks @Chris-Kawa, I had seen this solution but was looking for a more "native" approach, maybe with other services.

          My first goal is to have crash data to see which bugs my clients might be encountering.

          @koahnig, I see your concern (and agree with it) and I naturally will inform users about sending data usage.

          What I want to achieve is similar to Google Analytics, but for desktop apps (like www.deskmetrics.com).
          Tracking user activity is a big plus to understand how users behave and what I can improve.

          How Qt community tracks user usage and crash reports?

          K Chris KawaC 2 Replies Last reply
          0
          • R rafaelcgo

            Thanks @Chris-Kawa, I had seen this solution but was looking for a more "native" approach, maybe with other services.

            My first goal is to have crash data to see which bugs my clients might be encountering.

            @koahnig, I see your concern (and agree with it) and I naturally will inform users about sending data usage.

            What I want to achieve is similar to Google Analytics, but for desktop apps (like www.deskmetrics.com).
            Tracking user activity is a big plus to understand how users behave and what I can improve.

            How Qt community tracks user usage and crash reports?

            K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            @rafaelcgo

            I am not "happy" enough to share anything automatically with Google or others.

            I have not come across an automatic response question for Qt stuff, yet. My guess that most users ask questions on their crashes here or file a bug report on JIRA. Also reports on JIRA require sometimes questions back for getting a solution.

            Possibly there is something for licensing users of Qt.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            2
            • R rafaelcgo

              Thanks @Chris-Kawa, I had seen this solution but was looking for a more "native" approach, maybe with other services.

              My first goal is to have crash data to see which bugs my clients might be encountering.

              @koahnig, I see your concern (and agree with it) and I naturally will inform users about sending data usage.

              What I want to achieve is similar to Google Analytics, but for desktop apps (like www.deskmetrics.com).
              Tracking user activity is a big plus to understand how users behave and what I can improve.

              How Qt community tracks user usage and crash reports?

              Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @rafaelcgo said in How to Log to a Server (like logentries, loggly...):

              I had seen this solution but was looking for a more "native" approach

              I'm not sure what you mean by "more native"? There's a storage cloud that offers an API. There's a Qt app that uses Qt network class to send the data using that API. I can't see anything being more native. Certainly not bringing yet another 3rd party service into it.

              The way the projects I've worked on approached this was there's a crash handler that shows the user a friendly "oh no!" type of message and asks if he would like to report a bug and supply the crashlog. If agreed on, the crash handler would just copy the data to some server via REST, SOAP, or, in one case, through an email. I didn't work on active usage data collection though, just bug reporting.

              Although I agree telemetry is invaluable for developers I really really hate it as a user and I would personally restrict it to a beta or insider preview type of scenarios. Please lets not bring the problems of web to desktop/mobile apps. Just because aggressive hidden analytics are widespread it doesn't mean they're good. My 0.02$

              1 Reply Last reply
              4
              • R Offline
                R Offline
                rafaelcgo
                wrote on last edited by
                #7

                @Chris-Kawa and @koahnig
                Thanks for the conversation and for your opinions!
                I think I will ask for users about sending usage statics on app first run and might use the QNetworkAccessManager.

                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