<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">

	<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>

	<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
		<encoder>
			<pattern>%d %5p %40.40c:%4L - %m%n</pattern>
		</encoder>
	</appender>

	<appender name="testFile" class="ch.qos.logback.core.FileAppender">
		<file>testFile.log</file>
		<append>true</append>
		<immediateFlush>true</immediateFlush>
		<encoder>
			<pattern>%d [%thread] %logger{35} %-5level -- %msg%n</pattern>
		</encoder>
	</appender>

	<appender name="testAppender" class="org.springframework.data.gemfire.tests.logging.slf4j.logback.TestAppender"/>

	<logger name="ch.qos.logback" level="${logback.log.level:-ERROR}"/>

	<logger name="example.app.crm.config.TestcontainersCassandraConfiguration" level="${logback.log.level:-DEBUG}">
		<appender-ref ref="testFile"/>
	</logger>

	<logger name="org.apache" level="${logback.log.level:-ERROR}"/>

	<logger name="org.springframework" level="${logback.log.level:-ERROR}"/>

	<root level="${logback.log.level:-ERROR}">
		<appender-ref ref="console"/>
	</root>

</configuration>
