logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volkan Yazıcı <volkan.yaz...@gmail.com>
Subject Obtaining LoggerContext without starting it
Date Wed, 28 Oct 2020 10:32:21 GMT
Hello,

I use the following snippet to obtain a LoggerContext out of a config asdasd

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.LoggerContext;

(LoggerContext) LogManager.getContext(
        ClassLoader.getSystemClassLoader(), false, configFileUri);

Though this causes the LoggerContext to be started implicitly. Is it
possible to obtain a LoggerContext without starting it?

Kind regards.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message