Changeset 1675
- Timestamp:
- 10/06/11 22:08:51 (8 months ago)
- Location:
- trunk/docx4j/src/main
- Files:
-
- 2 edited
-
java/org/docx4j/utils/Log4jConfigurator.java (modified) (2 diffs)
-
resources/docx4j.properties (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/utils/Log4jConfigurator.java
r1661 r1675 7 7 import org.apache.log4j.LogManager; 8 8 import org.apache.log4j.Logger; 9 import org.docx4j.Docx4jProperties; 9 10 10 11 //From http://wiki.apache.org/logging-log4j/UsefulCode … … 13 14 public synchronized static void configure() { 14 15 if (!isConfigured()) { 16 17 boolean disabled = Boolean.parseBoolean( 18 Docx4jProperties.getProperties().getProperty("docx4j.Log4j.Configurator.disabled", "false")); 19 if (disabled) return; 20 15 21 BasicConfigurator.configure(); 16 22 -
trunk/docx4j/src/main/resources/docx4j.properties
r1604 r1675 25 25 # 26 26 #docx4j.McPreprocessor=true 27 28 # If you haven't configured log4j yourself 29 # docx4j will autoconfigure it. Set this to true to disable that 30 docx4j.Log4j.Configurator.disabled=false
Note: See TracChangeset
for help on using the changeset viewer.
