Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2206

Improve default logging configuration for puppetserver

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • SERVER 6.0.0
    • None
    • None
    • Froyo
    • Not Needed
    • Docs included in PR
    • Needs Assessment

    Description

      The default logback configuration bundled with the puppetserver package can be
      improved by:

      • Updating the configuration to no longer require a service restart or reload
        in order for changes to be picked up (TK-426).
      • Formatting timestamps in application logs to include the time zone in order
        to enable debugging of geographically distributed installations (PE-13490).

      These changes will allow DEBUG logging to be enabled without requiring a restart
      or reload that may destroy application state and improve the usefulness of log
      data from installations that span multiple time zones.

      Recommendations:

      • Logback configuration should include scanPeriod="60 seconds" to allow
        log levels and other settings to be adjusted without requiring service
        restarts or reloads.
      • Logback patterns for application logs should use a RFC 3339
        compatible representation that includes the Time Zone. A Java
        SimpleDateFormat that works with logback is:

      %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chuck Charlie Sharpsteen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support