blob: c2de3691e1ed0966ad7a523ff2702a03f6b47839 [file]
package org.apache.log4j.xml.test;
import org.apache.log4j.Category;
import org.apache.log4j.xml.DOMConfigurator;
import org.apache.log4j.SimpleLayout;
import org.apache.log4j.FileAppender;
//import org.xml.sax.InputSource;
//import org.apache.log4j.xml.examples.ReportParserError;
//import org.apache.xerces.parsers.DOMParser;
public class DisableOverrideTest {
static Category CAT = Category.getInstance(DisableOverrideTest.class);
public static void main( String[] argv) {
String configFile = null;
if(argv.length == 1)
configFile = argv[0];
else
Usage("Wrong number of arguments.");
DOMConfigurator.configure(configFile);
Category.getDefaultHierarchy().disableInfo();
CAT.debug("Hello world");
}
static
void Usage(String msg) {
System.err.println(msg);
System.err.println("Usage: java "+ DisableOverrideTest.class.getName() +
"configFile");
System.exit(1);
}
}