logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: Getting the LoggerContext from log4j-api
Date Wed, 20 Sep 2017 13:22:43 GMT
No. The Log4j API can be used as a general logging facade. How configuration is done is implementation
specific so it can’t be accessed through the API.


> On Sep 19, 2017, at 11:18 PM, Asma Zinneera Jabir <azinneera@gmail.com> wrote:
> I know that the usual way of getting the configuration is through the
> org.apache.logging.log4j.core.LoggerContext log4j-core as
> LoggerContext ctx = (LoggerContext) LogManager.getContext()
> But is there a way to get the context from the
> org.apache.logging.log4j.spi.LoggerContext??

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message