I am using java.util.logging
for logging (I don\'t want to use log4j or anything else).
This is my complete private logging.properties:
com.mycomp.myproj.LogFormatter is not in your system class path.
LogManager will do the following call for loading your class:
Formatter getFormatterProperty(String name, Formatter defaultValue) {
String val = getProperty(name);
try {
if (val != null) {
Class> clz = ClassLoader.getSystemClassLoader().loadClass(val);
return (Formatter) clz.newInstance();
}
} catch (Exception ex) {
// We got one of a variety of exceptions in creating the
// class or creating an instance.
// Drop through.
}
// We got an exception. Return the defaultValue.
return defaultValue;
}
You need to make sure your class LogFormatter is in the system's class path.