|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.GenericConfigurator
public abstract class GenericConfigurator
Field Summary | |
---|---|
protected Interpreter |
interpreter
|
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
context |
Constructor Summary | |
---|---|
GenericConfigurator()
|
Method Summary | |
---|---|
protected void |
addDefaultNestedComponentRegistryRules(DefaultNestedComponentRegistry registry)
|
protected abstract void |
addImplicitRules(Interpreter interpreter)
|
protected abstract void |
addInstanceRules(RuleStore rs)
|
protected void |
buildInterpreter()
Builds a generic configuration-XML interpreter |
void |
doConfigure(File file)
Configures logback with the configuration XML read from a given file |
void |
doConfigure(InputStream inputStream)
Configures logback with the configuraiton XML read from an input stream, and then closes the stream |
void |
doConfigure(List<SaxEvent> eventList)
Configures logback with SAX events of configuration XML |
void |
doConfigure(String filename)
Configures logback with the configuration XML read from a file, located at the given path on the host filesystem |
void |
doConfigure(URL url)
Configures logback with the configuration XML read from a file, located at the given URL |
static void |
informContextOfURLUsedForConfiguration(Context context,
URL url)
Adds the URL of the used configuration file to the watch list, which is periodically scanned for changes when the "scan" flag is set in logback.xml ( <configuration scan="true" ...> ). |
protected Pattern |
initialPattern()
Gets the initial pattern |
List<SaxEvent> |
recallSafeConfiguration()
Recall the event list previously registered as a safe point. |
void |
registerSafeConfiguration()
Register the current event list in the interpreter as a safe configuration point. |
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Interpreter interpreter
Constructor Detail |
---|
public GenericConfigurator()
Method Detail |
---|
public final void doConfigure(URL url) throws JoranException
url
- URL to the file, containing the configuration XML
JoranException
public final void doConfigure(String filename) throws JoranException
filename
- path to the file, containing the configuration XML
JoranException
public final void doConfigure(File file) throws JoranException
file
- the file, containing the configuration XML
JoranException
public static void informContextOfURLUsedForConfiguration(Context context, URL url)
<configuration scan="true" ...>
).
context
- the logger context to modifyurl
- the URL to addpublic final void doConfigure(InputStream inputStream) throws JoranException
inputStream
- stream to contents of configuration XML
JoranException
protected abstract void addInstanceRules(RuleStore rs)
protected abstract void addImplicitRules(Interpreter interpreter)
protected void addDefaultNestedComponentRegistryRules(DefaultNestedComponentRegistry registry)
protected Pattern initialPattern()
Pattern
protected void buildInterpreter()
public void doConfigure(List<SaxEvent> eventList) throws JoranException
eventList
- list of SAX events
JoranException
public void registerSafeConfiguration()
public List<SaxEvent> recallSafeConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |