Home / Type/ WithNonDefaultXmlResource Type — spring-boot Architecture

WithNonDefaultXmlResource Type — spring-boot Architecture

Architecture documentation for the WithNonDefaultXmlResource type/interface in Log4J2LoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java lines 778–801

	@Target(ElementType.METHOD)
	@Retention(RetentionPolicy.RUNTIME)
	@WithResource(name = "nondefault.xml",
			content = """
					<Configuration status="WARN" monitorInterval="30">
						<Properties>
							<Property name="PID">????</Property>
							<Property name="LOG_PATTERN">${sys:LOG_FILE} %d{yyyy-MM-dd HH:mm:ss.SSS}] service%X{context} - ${sys:PID} %5p [%t] --- %c{1}: %m%n</Property>
						</Properties>
						<Appenders>
							<Console name="Console" target="SYSTEM_OUT" follow="true">
								<PatternLayout pattern="${LOG_PATTERN}"/>
							</Console>
						</Appenders>
						<Loggers>
							<Root level="info">
								<AppenderRef ref="Console"/>
							</Root>
						</Loggers>
					</Configuration>
					""")
	private @interface WithNonDefaultXmlResource {

	}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free