Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-999

Include git revision in (each) log statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      During FINERACT-932, it occurred to me that it could be useful, when analysing error logs, to know in exactly which git revision an error log was produced, e.g. because line numbers may have changed in the mean time etc.

      https://github.com/spring-projects/spring-boot/issues/11950 has something about including it in the Spring Boot banner - but that is easily lost in a long running application, and not immediately visible e.g. in https://cloud.google.com/error-reporting.

      What would be nicer is if each log statement, literally every line, would simply include the Git revision. This should be possible through a custom log format acessing something from a global context (not MDC), somehow.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: