1. tbrugz
  2. sqldump

Commits

tbrugz  committed bc034f5

properties: getProperty() debug logging

  • Participants
  • Parent commits 21663d9
  • Branches default

Comments (0)

Files changed (2)

File src/log4j.properties

View file
 #log4j.logger.tbrugz.sqldump=INFO
 #log4j.logger.tbrugz.sqldiff=INFO
 #log4j.logger.tbrugz.xml.AbstractDump=INFO
-#log4j.logger.tbrugz.sqldump.ParametrizedProperties=DEBUG
 
 #log4j.logger.tbrugz.sqldump.SQLUtils=DEBUG
 #log4j.logger.tbrugz.sqldump.SQLQueries=DEBUG
 #log4j.logger.tbrugz.sqldump.JDBCSchemaGrabber=DEBUG
 #log4j.logger.tbrugz.sqldump.Utils=DEBUG
 #log4j.logger.tbrugz.sqldump.dbmodel.TableType=DEBUG
+#log4j.logger.tbrugz.sqldump.SQLUtils=DEBUG
 
 #log4j.logger.tbrugz.sqldump.dbmsfeatures.OracleFeatures=DEBUG
 #log4j.logger.tbrugz.sqldump.dbmsfeatures.OracleDatabaseMetaData=DEBUG
 log4j.appender.C1.layout.ConversionPattern=%d{ABSOLUTE} %5p [%c{1}] %m%n
 #log4j.appender.C1.layout.ConversionPattern=%d{ABSOLUTE} %5p [%-30.30c{1}] %m%n
 
-
-############ http://logging.apache.org/log4j/docs/manual.html
-# Print the date in ISO 8601 format
-#log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
-
-# Print only messages of level WARN or above in the package com.foo.
-#log4j.logger.com.foo=WARN
 ############
 
-#log4j.logger.tbrugz.sqldump=INFO, F1
+# ParametrizedProperties
+#
+#log4j.additivity.tbrugz.sqldump.util.ParametrizedProperties=false
+#log4j.logger.tbrugz.sqldump.util.ParametrizedProperties=DEBUG, PP
+#
+##log4j.logger.tbrugz.sqldump.util.ParametrizedProperties=DEBUG
 
-log4j.appender.F1=org.apache.log4j.FileAppender
-log4j.appender.F1.File=dumpsql.log
-log4j.appender.F1.layout=org.apache.log4j.PatternLayout
-log4j.appender.F1.layout.ConversionPattern=%d{ABSOLUTE} %5p %m%n
+log4j.appender.PP=org.apache.log4j.FileAppender
+log4j.appender.PP.File=parametrized-properties-debug.log
+log4j.appender.PP.layout=org.apache.log4j.PatternLayout
+log4j.appender.PP.layout.ConversionPattern=%d{ABSOLUTE} %5p %m%n

File src/tbrugz/sqldump/util/ParametrizedProperties.java

View file
 	
 	@Override
 	public String getProperty(String key) {
+		log.debug("getp: "+key);
 		String s = super.getProperty(key);
 		if(s==null) {
 			return null;