Difference between revisions of "NF10 Add Context Variables in log entries"
CarlosRuiz (talk | contribs) m (CarlosRuiz moved page NF11 Add Context Variables in log entries to NF10 Add Context Variables in log entries) |
CarlosRuiz (talk | contribs) m |
||
| Line 28: | Line 28: | ||
[[Category:New Features|T]] | [[Category:New Features|T]] | ||
| − | [[Category:New Features | + | [[Category:New Features w10|T]] |
[[Category:New Features Technical]] | [[Category:New Features Technical]] | ||
Revision as of 13:40, 24 March 2023
Feature: Add Context Variables in log entries
Goal: Technical
Developers: Nicolas Micoud, Hengsin, Carlos Ruiz
Sponsor : TGI
Feature Ticket: IDEMPIERE-5608
Description:
It is now possible to use any Context Variables in the log.
You just need to add a VM argument (eg: -Dorg.idempiere.FileLogPrefix="@#AD_Client_Name@ lang=@#AD_Language@ - @#AD_User_Name@ ") to get those additional information in logs.
So instead of 14:28:25.889===========> DB.saveError: SaveErrorNotUnique - ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « c_bpartner_value »
You can easily get
14:23:01.335===========> GardenWorld lang=en_US - SuperUser / GardenWorld Admin DB.saveError: SaveErrorNotUnique - ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « c_bpartner_value »
and understand who has generated the entry.
