log4j.lcf
author Asier Lostalé <asier.lostale@openbravo.com>
Fri, 11 Aug 2017 16:21:42 +0200
changeset 32608 f8c3d0a4f7a4
parent 5808 fd6f3ff0d871
permissions -rw-r--r--
fixed bug 36755: inefficient translate task

Several improvements applied:
* A single invocation is performed instead one per file extension.
* Look for labels just once regardless number of installed translations.
* Cache all labels in memory so that a single query is performed to look for
them up instead of one per each label found in files.
* Execute all DB updates in a single transaction
* Reduced log vebosity (specially when no modules in development)
juanpablo@378
     1
# Set root category priority to DEBUG and its only appender to A1.
juanpablo@378
     2
log4j.rootCategory=WARN, A1
juanpablo@378
     3
  
juanpablo@378
     4
# A1 is set to be a ConsoleAppender. 
juanpablo@378
     5
log4j.appender.A1=org.apache.log4j.ConsoleAppender
juanpablo@378
     6
  
juanpablo@378
     7
# A1 uses PatternLayout.
juanpablo@378
     8
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
juanpablo@378
     9
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
juanpablo@378
    10
asier@683
    11
log4j.category.org.openbravo.wad=DEBUG