blacklong commented on issue #3927:
URL: 
https://github.com/apache/logging-log4j2/issues/3927#issuecomment-3291184435

   I know the reason, because when looking up, ServletContext  is still null
   
   `public class WebLookup extends AbstractLookup {
       private static final String ATTR_PREFIX = "attr.";
       private static final String INIT_PARAM_PREFIX = "initParam.";
   
       @Override
       public String lookup(final LogEvent event, final String key) {
           final ServletContext ctx = WebLoggerContextUtils.getServletContext();
           if (ctx == null) {
               return null;
           }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to