Class ApplicationLoggerFlags
java.lang.Object
io.opentelemetry.javaagent.bootstrap.logging.ApplicationLoggerFlags
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturn true when theLoggerFactoryinstrumentation is allowed to install an application logger bridge.static booleanReturn true when theLoggingApplicationListenerinstrumentation is allowed to install an application logger bridge.static voidDisables the sfl4jLoggerFactoryinstrumentation; and instead enables the Spring BootLoggingApplicationListenerinstrumentation.
-
Method Details
-
setSpringBootApp
public static void setSpringBootApp()Disables the sfl4jLoggerFactoryinstrumentation; and instead enables the Spring BootLoggingApplicationListenerinstrumentation. In Spring Boot, an implementation ofLoggingApplicationListeneris responsible for initializing the logging library. Even though slf4j (and itsLoggerFactory) is actually logged earlier, it is not usable until theLoggingApplicationListenerfinishes its initialization process. -
bridgeLoggerFactory
public static boolean bridgeLoggerFactory()Return true when theLoggerFactoryinstrumentation is allowed to install an application logger bridge. Will return true at most once. -
bridgeSpringBootLogging
public static boolean bridgeSpringBootLogging()Return true when theLoggingApplicationListenerinstrumentation is allowed to install an application logger bridge. Will return true at most once.
-