// ALL THESE ARE SUPPORTED BY JAKARTA COMMONS LOGGING
if (logSystem.equals(LOG4J)) {
System.setProperty(JCL_LOG_CONFIGURATION, "org.apache.commons.logging.impl.Log4JLogger");
m_logFactory = new JakartaLogFactory();
} else if (logSystem.equals(JDK14)) {
System.setProperty(JCL_LOG_CONFIGURATION, "org.apache.commons.logging.impl.Jdk14Logger");
m_logFactory = new JakartaLogFactory();
} else if (logSystem.equals(SIMPLE)) {
System.setProperty(JCL_LOG_CONFIGURATION, "org.apache.commons.logging.impl.SimpleLog");
m_logFactory = new JakartaLogFactory();
} else if (logSystem.equals(NOOP)) {
System.setProperty(JCL_LOG_CONFIGURATION, "org.apache.commons.logging.impl.NoOpLog");
m_logFactory = new JakartaLogFactory();
}
// we use a slightly modified wrapper to do log statement level modification
// for support of JBossAS log level semantics, see JakartaRelevelingLogger javadoc
else if (logSystem.equals(RELEVELER)) {
System.setProperty(JCL_LOG_CONFIGURATION, "org.apache.commons.logging.impl.Log4JLogger");
m_logFactory = new JakartaRelevelingLogFactory();
}
// USE JAKARTA COMMONS LOGGINGS OWN DISCOVERY MECHANISM
else if (logSystem.equals(JAKARTA_LOGGER)) {
m_logFactory = new JakartaLogFactory();
}
// OUR IMPLEMNETATION OF .net LOGGING BYPASSES JAKARTA COMMONS LOGGING
else if (logSystem.equals(DOTNET_LOGGER)) {
m_logFactory = new SimpleLogFactory();
}
// by default, use jakarta logging ...
else {
m_logFactory = new JakartaLogFactory();
}
} catch (LogConfigurationException e) {
//throw new ExceptionInInitializerError("An unexpected exception occurred while creating the logger factory:" + e);
throw new RuntimeException("An unexpected exception occurred while creating the logger factory: " + e.getMessage());