On 27.02.2002 01:32:07 Chris Lambert wrote: >is it possible to create user defined priorities? (possibly a level lower >than debug called TRACE)
in the _OLD_ Log4J it was possible like this... public class MYLogPriority extends Priority { public final static int INFO_INT = Priority.INFO_INT; public final static int EXCEPTION_INT = Priority.INFO_INT - 1; public final static int TRACE_INT = Priority.DEBUG_INT - 1; public final static int WARNING_INT = Priority.WARN_INT; private final static String INFO_STR = "INFO "; private final static String EXCEPTION_STR = "EXCEPTION"; private final static String TRACE_STR = "TRACE "; private final static String WARNING_STR = "WARNING "; private final static String FATAL_STR = "FATAL "; private final static String ERROR_STR = "ERROR "; private final static String DEBUG_STR = "DEBUG "; public final static MYLogPriority FATAL = new MYLogPriority(FATAL_INT, FATAL_STR, 0); public final static MYLogPriority ERROR = new MYLogPriority(ERROR_INT, ERROR_STR, 3); public final static MYLogPriority WARNING = new MYLogPriority(WARNING_INT, WARNING_STR, 4); public final static MYLogPriority INFO = new MYLogPriority(INFO_INT, INFO_STR, 6); public final static MYLogPriority EXCEPTION = new MYLogPriority(EXCEPTION_INT, EXCEPTION_STR, 6); public final static MYLogPriority DEBUG = new MYLogPriority(DEBUG_INT, DEBUG_STR, 7); public final static MYLogPriority TRACE = new MYLogPriority(TRACE_INT, TRACE_STR, 7); ....more code... Regards, Harry -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>