NF10 Add Context Variables in log entries
From iDempiere en
Revision as of 12:36, 8 May 2023 by CarlosRuiz (talk | contribs) (→Feature: Add Context Variables in log entries)
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. IMPORTANT NOTE: do not use quotes when defining the variable in setup or idempiereEnv.properties
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 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.
