Runnable function ( final ServletContext arg0 , final Runnable arg1 ) { return new Runnable ( ) { @ Override public void run ( ) { final Log4jWebSupport loc0 = getWebLifeCycle ( arg0 ) ; loc0 . setLoggerContext ( ) ; try { arg1 . run ( ) ; } finally { loc0 . clearLoggerContext ( ) ; } } } ; }
wraps a runnable instance by setting its thread context org.apache.logging.log4j.core.loggercontext before execution and clearing it after execution . concode_field_sep Lock WEB_SUPPORT_LOOKUP concode_field_sep LoggerContext getWebLoggerContext concode_elem_sep Log4jWebLifeCycle getWebLifeCycle concode_elem_sep ServletContext getServletContext concode_elem_sep LoggerContext getRequiredWebLoggerContext