public class TomcatSlf4jLogbackFactoryAccessor extends DefaultAccessor
All TomcatSlf4jLogback classes are loaded via the given class loader and not via psi-probe's own class loader. For this reasons, all methods on TomcatSlf4jLogback objects are invoked via reflection.
This way, we can even handle different versions of TomcatSlf4jLogback embedded in different WARs.
logger| Constructor and Description |
|---|
TomcatSlf4jLogbackFactoryAccessor(ClassLoader cl)
Attempts to initialize a TomcatSlf4jLogback logger factory via the given class loader.
|
| Modifier and Type | Method and Description |
|---|---|
List<TomcatSlf4jLogbackAppenderAccessor> |
getAppenders()
Returns a list of wrappers for all TomcatSlf4jLogback appenders that have an associated logger.
|
TomcatSlf4jLogbackLoggerAccessor |
getLogger(String name)
Returns the TomcatSlf4jLogback logger with a given name.
|
TomcatSlf4jLogbackLoggerAccessor |
getRootLogger()
Returns the TomcatSlf4jLogback root logger.
|
getApplication, getProperty, getProperty, getTarget, getTargetClass, invokeMethod, setApplication, setTargetpublic TomcatSlf4jLogbackFactoryAccessor(ClassLoader cl) throws ClassNotFoundException, IllegalAccessException, InvocationTargetException
cl - the ClassLoader to use when fetching the factoryClassNotFoundException - the class not found exceptionIllegalAccessException - the illegal access exceptionInvocationTargetException - the invocation target exceptionpublic TomcatSlf4jLogbackLoggerAccessor getRootLogger()
public TomcatSlf4jLogbackLoggerAccessor getLogger(String name)
name - the namepublic List<TomcatSlf4jLogbackAppenderAccessor> getAppenders()
TomcatSlf4jLogbackAppenderAccessors representing all appenders that
are in useCopyright © 2009–2020 psi-probe. All rights reserved.