All Downloads are FREE. Search and download functionalities are using the official Maven repository.

config.logback-default-server.xml Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!--     <include resource="org/springframework/boot/logging/logback/base.xml"/> -->
	<springProperty scope="context" name="logFilePath" source="miscSettings.logFilePath"
		defaultValue="${java.io.tmpdir}"/>
	<springProperty scope="context" name="logFileAppend" source="miscSettings.logFileAppend"
		defaultValue="true"/>
		
	<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
		<resetJUL>true</resetJUL>
	</contextListener>
	<appender class="ch.qos.logback.core.ConsoleAppender" name="CONSOLE_A">
		<encoder>
			<pattern>%d{HH:mm:ss.SSS} [%p] %c [%t] - %m%n</pattern>
		</encoder>
	</appender>
	
	<appender class="ch.qos.logback.core.rolling.RollingFileAppender"
		name="FILE">
		<file>${logFilePath}/BiDiBWizard2-server.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>50MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{HH:mm:ss.SSS} [%p] %c [%t] - %m%n</pattern>
		</encoder>
	</appender>
	<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="RXTX">
		<file>${logFilePath}/BiDiBWizard2-server-RXTX.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server-RXTX.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>10MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS}: [%t] - %m%n</pattern>
		</encoder>
	</appender>
	<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="MSG_RAW_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-server-RAW.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server-RAW.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>10MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS}: [%t] - %m%n</pattern>
		</encoder>
	</appender>
	<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="DYNSTATE_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-server-DYNSTATE.log</file>
		<append>false</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server-DYNSTATE.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>10MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS} - %m%n</pattern>
		</encoder>
	</appender>
	<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="OPS">
		<file>${logFilePath}/BiDiBWizard2-server-OPS.log</file>
		<append>false</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server-OPS.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>10MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS} [%t] - %m%n</pattern>
		</encoder>
	</appender>
	
	<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EVENT">
		<file>${logFilePath}/BiDiBWizard2-server-EVENT.log</file>
		<append>false</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server-EVENT.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>10MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS} [%t] - %m%n</pattern>
		</encoder>
	</appender>

	<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="CLIENT">
		<file>${logFilePath}/BiDiBWizard2-server-CLIENT.log</file>
		<append>false</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server-CLIENT.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>50MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS} [%t] - %m%n</pattern>
		</encoder>
	</appender>
	
	<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="RXTX_NET">
		<file>${logFilePath}/BiDiBWizard2-server-RXTX-NET.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-server-RXTX-NET.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>20MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS}: [%t] - %m%n</pattern>
		</encoder>
	</appender>
	
	<logger additivity="false" level="INFO" name="RAW">
		<appender-ref ref="MSG_RAW_LOGGER" />
	</logger>
	<logger additivity="false" level="INFO" name="TX">
		<appender-ref ref="RXTX" />
	</logger>
	<logger additivity="false" level="INFO" name="RX">
		<appender-ref ref="RXTX" />
	</logger>

	<logger additivity="false" level="INFO" name="TX_NET">
		<appender-ref ref="RXTX_NET" />
	</logger>
	<logger additivity="false" level="INFO" name="RX_NET">
		<appender-ref ref="RXTX_NET" />
	</logger>

	<logger additivity="false" level="INFO" name="DYNSTATE">
		<appender-ref ref="DYNSTATE_LOGGER" />
	</logger>
	<logger additivity="false" level="INFO" name="OPS">
		<appender-ref ref="OPS" />
	</logger>
	
	<logger additivity="false" level="INFO" name="EVENT">
		<appender-ref ref="EVENT" />
	</logger>
    <logger additivity="false" level="INFO" name="PORT_CONFIG_EVENT">
        <appender-ref ref="EVENT" />
    </logger>

	<logger additivity="false" level="INFO" name="org.bidib.wizard.server.controllers.LogController">
		<appender-ref ref="CLIENT" />
	</logger>
	
	<!-- logger level="DEBUG" name="org.bidib.jbidibc.Node"/> <logger level="DEBUG" 
		name="org.bidib.jbidibc.Bidib"/> <logger level="DEBUG" name="org.bidib.jbidibc.node.BidibNode"/> 
		<logger level="DEBUG" name="org.bidib.jbidibc.node.AccessoryNode"/ -->
	<!-- <logger level="DEBUG" name="org.bidib.jbidibc.MessageReceiver"/> -->
	<!-- logger level="DEBUG" name="org.bidib.wizard.comm.bidib"/ -->
	<!-- <logger level="DEBUG" name="org.bidib.wizard.mvc.dmx.view.scenery.SceneryPanel"/> -->
	<!-- <logger level="DEBUG" name="org.bidib.wizard.mvc.debug"/> <logger level="DEBUG" 
		name="org.bidib.wizard.mvc.main.view.cvdef.CvBitfieldValueEditor"/> -->
	<logger level="WARN" name="org.bidib.jbidibc.simulation" />
	<logger level="INFO"
		name="org.bidib.jbidibc.simulation.comm.SimulationBidib" />
		
		
	<!-- 
	<logger level="DEBUG" name="org.springframework.web.socket" />
	<logger level="DEBUG" name="org.springframework.messaging" />
	<logger level="DEBUG" name="org.springframework.security" />
	-->
	
	<!-- 
	<logger level="DEBUG" name="org.springframework.messaging.simp.stomp" />
	<logger level="DEBUG" name="org.springframework.messaging" />  
	-->
	
	<!-- log the HandlerMappings durig startup -->
	
	<logger name="_org.springframework.web.servlet.HandlerMapping.Mappings" level="DEBUG" />
	

	<root level="INFO">
		<appender-ref ref="CONSOLE_A" />
		<appender-ref ref="FILE" />
	</root>
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy