You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Michael Vorburger (Jira)" <ji...@apache.org> on 2020/05/22 20:10:00 UTC

[jira] [Created] (FINERACT-999) Include git revision in (each) log statement

Michael Vorburger created FINERACT-999:
------------------------------------------

             Summary: Include git revision in (each) log statement
                 Key: FINERACT-999
                 URL: https://issues.apache.org/jira/browse/FINERACT-999
             Project: Apache Fineract
          Issue Type: Improvement
            Reporter: Michael Vorburger


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)