Merge in the allow-flawed branch, as there were no objections.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190565 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -16,10 +16,25 @@
|
||||
|
||||
package org.apache.commons.logging;
|
||||
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.commons.logging.impl.LogFactoryImpl;
|
||||
|
||||
public class UserClass {
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Set the ALLOW_FLAWED_CONTEXT feature on the LogFactoryImpl object
|
||||
* associated with this class' classloader.
|
||||
* <p>
|
||||
* Don't forget to set the context classloader to whatever it will be
|
||||
* when an instance of this class is actually created <i>before</i> calling
|
||||
* this method!
|
||||
*/
|
||||
public static void setAllowFlawedContext(String state) {
|
||||
LogFactory f = LogFactory.getFactory();
|
||||
f.setAttribute(LogFactoryImpl.ALLOW_FLAWED_CONTEXT_PROPERTY, state);
|
||||
}
|
||||
|
||||
public UserClass() {
|
||||
Log log = LogFactory.getLog(LoadTest.class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user