Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Logging

Logging

Scheduled Pinned Locked Moved The Lounge
36 Posts 21 Posters 4 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.
  • OriginalGriffO OriginalGriff

    Generally speaking, I use logs for open fires and camping.

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

    C Offline
    C Offline
    Calin Negru
    wrote on last edited by
    #3

    Quote:

    open fires

    I imagine you use logs made of wood to keep the fire burning and (for) other leasure activities around the camp.

    OriginalGriffO 1 Reply Last reply
    0
    • C Calin Negru

      Quote:

      open fires

      I imagine you use logs made of wood to keep the fire burning and (for) other leasure activities around the camp.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #4

      If they are big enough, you can sit on them as well!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      C 1 Reply Last reply
      0
      • C Calin Negru

        Could some of you guys share a bit about your projects that use logging (not as a debugging process component but as a normal way of application functioning) and the type of things you throw in your logs. I would like to find out about all types of software that does some type of logging, everything ranging from desktop apps to servers. Thanks

        R Offline
        R Offline
        RickZeeland
        wrote on last edited by
        #5

        See: Slant searchquery=logging[^]

        1 Reply Last reply
        0
        • C Calin Negru

          Could some of you guys share a bit about your projects that use logging (not as a debugging process component but as a normal way of application functioning) and the type of things you throw in your logs. I would like to find out about all types of software that does some type of logging, everything ranging from desktop apps to servers. Thanks

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #6

          We do a lot of ETL work. Each ETL task takes a different amount of time. We use the logs to calculate the average time for each task to aid in scheduling the next run -- and thereby perform the historically longest-running tasks first. Similarly, we track record counts and signal an error if a record count falls outside the expected range ( +/- some factor).

          C 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            If they are big enough, you can sit on them as well!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            C Offline
            C Offline
            Calin Negru
            wrote on last edited by
            #7

            camping or trip chairs and tents are my favorites.

            OriginalGriffO 1 Reply Last reply
            0
            • C Calin Negru

              camping or trip chairs and tents are my favorites.

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #8

              If you are camping by car, then yes. But on a bike, A tent is a necessity (and the rest of the space is free for food and beer) ;)

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              1 Reply Last reply
              0
              • P PIEBALDconsult

                We do a lot of ETL work. Each ETL task takes a different amount of time. We use the logs to calculate the average time for each task to aid in scheduling the next run -- and thereby perform the historically longest-running tasks first. Similarly, we track record counts and signal an error if a record count falls outside the expected range ( +/- some factor).

                C Offline
                C Offline
                Calin Negru
                wrote on last edited by
                #9

                Thanks Piebaldconsult I had to check online the ETL abbreviation for its meaning. That`s field I wasn`t familiar with.

                1 Reply Last reply
                0
                • C Calin Negru

                  Could some of you guys share a bit about your projects that use logging (not as a debugging process component but as a normal way of application functioning) and the type of things you throw in your logs. I would like to find out about all types of software that does some type of logging, everything ranging from desktop apps to servers. Thanks

                  C Offline
                  C Offline
                  Chris Maunder
                  wrote on last edited by
                  #10

                  This is such an insanely huge topic of discussion. Here's what we do: - Every exception thrown in our code gets logged - When we fix a bug that's due to odd input or conditions we generally log the odd condition up to the point where it's common enough we feel we have a handle on it's many guises - When there's a spot where the code simply cannot, ever, in a million years be reached, and it's reached, we log it. - When there are failures of external services we might log them in order to work out what conditions will cause it to fail so we can work on preemptively not causing those conditions - When conditions in our app become extreme (eg serious user load, serious queue back-ups etc) we log them Some of these logs are for debugging, some for planning, some of these logs are used to trigger alerts, and some for our own amusement.

                  cheers Chris Maunder

                  FreedMallocF J L 3 Replies Last reply
                  0
                  • C Chris Maunder

                    This is such an insanely huge topic of discussion. Here's what we do: - Every exception thrown in our code gets logged - When we fix a bug that's due to odd input or conditions we generally log the odd condition up to the point where it's common enough we feel we have a handle on it's many guises - When there's a spot where the code simply cannot, ever, in a million years be reached, and it's reached, we log it. - When there are failures of external services we might log them in order to work out what conditions will cause it to fail so we can work on preemptively not causing those conditions - When conditions in our app become extreme (eg serious user load, serious queue back-ups etc) we log them Some of these logs are for debugging, some for planning, some of these logs are used to trigger alerts, and some for our own amusement.

                    cheers Chris Maunder

                    FreedMallocF Offline
                    FreedMallocF Offline
                    FreedMalloc
                    wrote on last edited by
                    #11

                    Don't you just wish you could have a loonie for every time bullet point 3 has happened? Shoot, I could have wound up chasing Elon Musk in the Forbes 500. :laugh:

                    C 1 Reply Last reply
                    0
                    • FreedMallocF FreedMalloc

                      Don't you just wish you could have a loonie for every time bullet point 3 has happened? Shoot, I could have wound up chasing Elon Musk in the Forbes 500. :laugh:

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #12

                      I know, right? And you stare and you stare, and you run every test and scenario and it's simply, positively, absolutely impossible. And *blip*. Another log entry pops up.

                      cheers Chris Maunder

                      K G 2 Replies Last reply
                      0
                      • C Chris Maunder

                        This is such an insanely huge topic of discussion. Here's what we do: - Every exception thrown in our code gets logged - When we fix a bug that's due to odd input or conditions we generally log the odd condition up to the point where it's common enough we feel we have a handle on it's many guises - When there's a spot where the code simply cannot, ever, in a million years be reached, and it's reached, we log it. - When there are failures of external services we might log them in order to work out what conditions will cause it to fail so we can work on preemptively not causing those conditions - When conditions in our app become extreme (eg serious user load, serious queue back-ups etc) we log them Some of these logs are for debugging, some for planning, some of these logs are used to trigger alerts, and some for our own amusement.

                        cheers Chris Maunder

                        J Offline
                        J Offline
                        jmaida
                        wrote on last edited by
                        #13

                        Agree. Huge topic of discussion. Lots of requirements, lots of conditions, and even more requirements. Start with first order requirements, such as source, frequency, etc.

                        "A little time, a little trouble, your better day" Badfinger

                        J C 2 Replies Last reply
                        0
                        • J jmaida

                          Agree. Huge topic of discussion. Lots of requirements, lots of conditions, and even more requirements. Start with first order requirements, such as source, frequency, etc.

                          "A little time, a little trouble, your better day" Badfinger

                          J Offline
                          J Offline
                          jmaida
                          wrote on last edited by
                          #14

                          Sorry not much to add. Chris said it all.

                          "A little time, a little trouble, your better day" Badfinger

                          1 Reply Last reply
                          0
                          • J jmaida

                            Agree. Huge topic of discussion. Lots of requirements, lots of conditions, and even more requirements. Start with first order requirements, such as source, frequency, etc.

                            "A little time, a little trouble, your better day" Badfinger

                            C Offline
                            C Offline
                            Calin Negru
                            wrote on last edited by
                            #15

                            Quote:

                            Huge topic of discussion

                            at least there is agreement it`s an interesting topic, I think one could say that any recording in a digital format with a date attached is a type of log.

                            D 1 Reply Last reply
                            0
                            • C Calin Negru

                              Could some of you guys share a bit about your projects that use logging (not as a debugging process component but as a normal way of application functioning) and the type of things you throw in your logs. I would like to find out about all types of software that does some type of logging, everything ranging from desktop apps to servers. Thanks

                              E Offline
                              E Offline
                              englebart
                              wrote on last edited by
                              #16

                              Every prepared statement that is about to run, the parameters to the statement, the number of rows returned with how long it took.

                              P C 2 Replies Last reply
                              0
                              • E englebart

                                Every prepared statement that is about to run, the parameters to the statement, the number of rows returned with how long it took.

                                P Offline
                                P Offline
                                PIEBALDconsult
                                wrote on last edited by
                                #17

                                Just be aware of sensitive parameter values.

                                1 Reply Last reply
                                0
                                • C Calin Negru

                                  Could some of you guys share a bit about your projects that use logging (not as a debugging process component but as a normal way of application functioning) and the type of things you throw in your logs. I would like to find out about all types of software that does some type of logging, everything ranging from desktop apps to servers. Thanks

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #18

                                  I use logs to keep track of users so I can say "I told you not to do that!"

                                  "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                                  C 1 Reply Last reply
                                  0
                                  • C Chris Maunder

                                    This is such an insanely huge topic of discussion. Here's what we do: - Every exception thrown in our code gets logged - When we fix a bug that's due to odd input or conditions we generally log the odd condition up to the point where it's common enough we feel we have a handle on it's many guises - When there's a spot where the code simply cannot, ever, in a million years be reached, and it's reached, we log it. - When there are failures of external services we might log them in order to work out what conditions will cause it to fail so we can work on preemptively not causing those conditions - When conditions in our app become extreme (eg serious user load, serious queue back-ups etc) we log them Some of these logs are for debugging, some for planning, some of these logs are used to trigger alerts, and some for our own amusement.

                                    cheers Chris Maunder

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #19

                                    Yes; for (3), the best I can do is a "Logic error" message.

                                    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                                    1 Reply Last reply
                                    0
                                    • C Calin Negru

                                      Could some of you guys share a bit about your projects that use logging (not as a debugging process component but as a normal way of application functioning) and the type of things you throw in your logs. I would like to find out about all types of software that does some type of logging, everything ranging from desktop apps to servers. Thanks

                                      M Offline
                                      M Offline
                                      Member 9167057
                                      wrote on last edited by
                                      #20

                                      I'm communicating with external devices so I log the communication, both what gets transferred & what settings are used for sending/receiving (yup, they're separate, my professional life's weird albeit cool). I don't log the internal workings outside of few debug cases as those get stabilized by unit tests. I also output a bit of general program info on start. Version, copyright (of course, that's the most important part of all this), relevant environment variables if applicable.

                                      1 Reply Last reply
                                      0
                                      • E englebart

                                        Every prepared statement that is about to run, the parameters to the statement, the number of rows returned with how long it took.

                                        C Offline
                                        C Offline
                                        Calin Negru
                                        wrote on last edited by
                                        #21

                                        sounds like a constructive advice thanks

                                        1 Reply Last reply
                                        0
                                        • C Calin Negru

                                          Could some of you guys share a bit about your projects that use logging (not as a debugging process component but as a normal way of application functioning) and the type of things you throw in your logs. I would like to find out about all types of software that does some type of logging, everything ranging from desktop apps to servers. Thanks

                                          O Offline
                                          O Offline
                                          Owen Lawrence
                                          wrote on last edited by
                                          #22

                                          I have worked on lots of simulators, telescope and sensor control hardware. These desktop applications operate as processes, so progress through their various tasks is logged, as well as important choices that the software makes throughout the process, and substantive I/O values and events. Naturally unexpected events are logged too, as well as meta-info about software modules and hardware devices. Plus whatever extras we need to track down difficult problems. Often the goal is to provide the user with the right amount of info to help them solve problems themselves without overwhelming them with cryptic detail, but make the detail available when we need to step in. For example, putting in full file paths saves us a lot of tech support calls when the user cannot find their results, or have a typo in their configuration file. Always include the complete software version (and licensed feature level) that produced the log, too. The rest of the time a log is a useful history of what data as produced, and how.

                                          - Owen -

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups