Changeset 834
- Timestamp:
- 09/06/06 09:01:23 (2 years ago)
- Files:
-
- trunk/source/org/kolaka/freecast/Application.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/source/org/kolaka/freecast/Application.java
r689 r834 42 42 import org.apache.commons.lang.builder.ToStringBuilder; 43 43 import org.apache.commons.logging.LogFactory; 44 import org.apache.log4j.Category; 45 import org.apache.log4j.Level; 46 import org.apache.log4j.Logger; 44 47 import org.kolaka.freecast.config.ConfigurationLoader; 45 48 import org.kolaka.freecast.config.DefaultConfigurationLoader; … … 115 118 options.addOption(dryrunOption); 116 119 120 Option debugOption = new Option("debug", false, 121 "set log level to debug"); 122 options.addOption(debugOption); 123 117 124 Option propertyOption = new Option("D", true, 118 125 "specifies a configuration property"); … … 135 142 return false; 136 143 } 144 145 boolean debug = line.hasOption(debugOption.getOpt()); 146 if (debug) { 147 Logger.getLogger("org.kolaka.freecast").setLevel(Level.DEBUG); 148 LogFactory.getLog(getClass()).debug("debug level set by command line"); 149 } 137 150 138 151 boolean dryrun = line.hasOption(dryrunOption.getOpt());
