public class LogbackLoggingConcern extends ch.qos.logback.classic.LoggerContext implements LoggerContextLoggingConcern
A Logback logging concern is also a LoggerContext and can be configured as such.
| Constructor and Description |
|---|
LogbackLoggingConcern() |
| Modifier and Type | Method and Description |
|---|---|
LogbackLoggingConcern |
autoConfigure()
Automatically configures this logging concern.
|
LogbackLoggingConcern |
configure(File file)
Configures this logging concern from a Logback configuration file.
|
LogbackLoggingConcern |
configure(InputStream inputStream)
Configures this logging concern from a Logback configuration file from a specified input stream.
|
LogbackLoggingConcern |
configure(Path path)
Configures this logging concern from a Logback configuration file at a specified path.
|
LogbackLoggingConcern |
configure(URL url)
Configures this logging concern from a Logback configuration file at a specified URL.
|
ch.qos.logback.classic.LoggerContext |
getLoggerContext() |
addListener, addTurboFilter, exists, getCopyOfListenerList, getFrameworkPackages, getLogger, getLogger, getLoggerContextRemoteView, getLoggerList, getMaxCallerDataDepth, getTurboFilterList, isPackagingDataEnabled, putProperty, removeListener, reset, resetTurboFilterList, setMaxCallerDataDepth, setName, setPackagingDataEnabled, start, stop, toStringaddScheduledFuture, getBirthTime, getConfigurationLock, getCopyOfPropertyMap, getExecutorService, getName, getObject, getProperty, getScheduledExecutorService, getScheduledFutures, getStatusManager, initCollisionMaps, isStarted, putObject, register, removeObject, setStatusManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLoggerFactory, getRootLogger, setLogLevel, toLogbackLevelpublic ch.qos.logback.classic.LoggerContext getLoggerContext()
getLoggerContext in interface LoggerContextLoggingConcernpublic LogbackLoggingConcern autoConfigure() throws ch.qos.logback.core.joran.spi.JoranException
This automatic configuration is equivalent to the configuration performed by a default Logback installation independent of Clogr.
ch.qos.logback.core.joran.spi.JoranException - if an error occurred during configuration;public LogbackLoggingConcern configure(@Nonnull Path path) throws ch.qos.logback.core.joran.spi.JoranException
If this logging concern previously had a configuration that you want to replace, you must first call LoggerContext.reset(). A multi-step configuration must not
call LoggerContext.reset() between each step.
path - The path to the Logback configuration file.ch.qos.logback.core.joran.spi.JoranException - if an error occurred during configuration;GenericConfigurator.doConfigure(File),
Logback configurationpublic LogbackLoggingConcern configure(@Nonnull File file) throws ch.qos.logback.core.joran.spi.JoranException
If this logging concern previously had a configuration that you want to replace, you must first call LoggerContext.reset(). A multi-step configuration must not
call LoggerContext.reset() between each step.
file - The Logback configuration file.ch.qos.logback.core.joran.spi.JoranException - if an error occurred during configuration;GenericConfigurator.doConfigure(File),
Logback configurationpublic LogbackLoggingConcern configure(@Nonnull URL url) throws ch.qos.logback.core.joran.spi.JoranException
If this logging concern previously had a configuration that you want to replace, you must first call LoggerContext.reset(). A multi-step configuration must not
call LoggerContext.reset() between each step.
url - The URL to the Logback configuration file.ch.qos.logback.core.joran.spi.JoranException - if an error occurred during configuration;GenericConfigurator.doConfigure(URL),
Logback configurationpublic LogbackLoggingConcern configure(@Nonnull InputStream inputStream) throws ch.qos.logback.core.joran.spi.JoranException
If this logging concern previously had a configuration that you want to replace, you must first call LoggerContext.reset(). A multi-step configuration must not
call LoggerContext.reset() between each step.
inputStream - The input stream to the Logback configuration file.ch.qos.logback.core.joran.spi.JoranException - if an error occurred during configuration;GenericConfigurator.doConfigure(InputStream),
Logback configurationCopyright © 2016 GlobalMentor, Inc.. All rights reserved.