[AS7-5255] Create a strong reference log context for log4j configurations.