Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47833

Logs should be timestamped

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Scope

      • Each log line shown in the UI should be shown with a timestamp
        • Removal of line numbers
      • Declarative pipeline should always have the timestamper enabled

      Notes
      We need to have a community discussion about why timestamper is an optional feature. I don't think anyone would not want their logs time stamped.

        Attachments

          Issue Links

            Activity

            jamesdumay James Dumay created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Epic Link JENKINS-43953 [ 181485 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Description *Scope*
            * Each log line shown in the UI should be shown with a timestamp
            ** Removal of line numbers
            * Declarative pipeline should always have the timestamper enabled
            *Scope*
            * Each log line shown in the UI should be shown with a timestamp
            ** Removal of line numbers
            * Declarative pipeline should always have the timestamper enabled

            *Notes*
            We need to have a community discussion about why timestamper is an optional feature. I don't think anyone would not want their logs time stamped.
            jamesdumay James Dumay made changes -
            Link This issue is duplicated by JENKINS-45108 [ JENKINS-45108 ]
            Hide
            grzegorz_dubicki Greg Dubicki added a comment -

            1. Why doesn't it have a bazillion of upvotes / +1 comments? This is something that should obviously be out-of-the-box in every CI solution...

            2. Can someone from the team please take a look at this?

             

            Show
            grzegorz_dubicki Greg Dubicki added a comment - 1. Why doesn't it have a bazillion of upvotes / +1 comments? This is something that should obviously be out-of-the-box in every CI solution... 2. Can someone from the team please take a look at this?  
            Hide
            jbochenski Jakub Bochenski added a comment -

            For benefit of anyone viewing this:

            Show
            jbochenski Jakub Bochenski added a comment - For benefit of anyone viewing this: there is a timestamper plugin: https://jenkins.io/doc/pipeline/steps/timestamper/ if you need it as default define some common wrappers: https://jenkins.io/doc/book/pipeline/shared-libraries/
            Hide
            jbochenski Jakub Bochenski added a comment -
            Show
            jbochenski Jakub Bochenski added a comment - Apparently timestamper is adding ConsoleNotes to the build, but they are not displayed in blueocean: https://github.com/jenkinsci/timestamper-plugin/blob/70f165c953387c530afdd202b1c913ba21184696/src/main/java/hudson/plugins/timestamper/TimestampNote.java#L42
            Hide
            trejkaz trejkaz added a comment -

            As far as I can tell, the ConsoleNotes added to the log are causing log files to become enormous, and even causing our builds to slow down to the point of being timed out.

            A plain text timestamp added to the lines of the log would be far more sane than timestamper-plugin. 22 bytes of timestamp in [yyyy-MM-dd HH:mm:ss] format versus the 320+ bytes of gzipped, base64d, HMACced garbage currently being written into the log.

            Show
            trejkaz trejkaz added a comment - As far as I can tell, the ConsoleNotes added to the log are causing log files to become enormous, and even causing our builds to slow down to the point of being timed out. A plain text timestamp added to the lines of the log would be far more sane than timestamper-plugin. 22 bytes of timestamp in [yyyy-MM-dd HH:mm:ss] format versus the 320+ bytes of gzipped, base64d, HMACced garbage currently being written into the log.
            oliverlockwood Oliver Lockwood made changes -
            Link This issue is related to JENKINS-44195 [ JENKINS-44195 ]
            Hide
            michaelneale Michael Neale added a comment -

            hey Jakub Bochenski trejkaz Greg Dubicki going to close this one as a clone of JENKINS-44195 which is getting more attention now. 

            Show
            michaelneale Michael Neale added a comment - hey Jakub Bochenski trejkaz Greg Dubicki going to close this one as a clone of  JENKINS-44195 which is getting more attention now. 
            michaelneale Michael Neale made changes -
            Link This issue duplicates JENKINS-44195 [ JENKINS-44195 ]
            michaelneale Michael Neale made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            batmat Baptiste Mathus made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            batmat Baptiste Mathus made changes -
            Resolution Duplicate [ 3 ]
            Status Reopened [ 4 ] Closed [ 6 ]
            batmat Baptiste Mathus made changes -
            Link This issue is duplicated by JENKINS-45108 [ JENKINS-45108 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jamesdumay James Dumay
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: