in log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java [117:121]
public static void setServletContext(LoggerContext lc, ServletContext servletContext) {
if (lc != null) {
lc.putObject(SERVLET_CONTEXT, servletContext);
}
}