log4j.lcf
author Stefan Hühner <stefan.huehner@openbravo.com>
Mon, 29 Jun 2015 17:28:49 +0200
changeset 27166 0c9a6c3e2277
parent 5808 fd6f3ff0d871
permissions -rw-r--r--
Fixed 30282: Suppress 'unused object allocation' warnings where done intentionally.

In some cases existing code does create objects without using them just to check for
side-effects. I.e. new BigDecimal(someString) to check if that string can be parsed
as a number.
Supress the warning in those cases.
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