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

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

There is a newer version: 2.0.29
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	 
	<springProperty scope="context" name="logFilePath" source="misc-settings.log-file-path"
        defaultValue="${java.io.tmpdir}"/>
    <springProperty scope="context" name="logFileAppend" source="misc-settings.log-file-append"
        defaultValue="true"/>
	 
	<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
		<resetJUL>true</resetJUL>
	</contextListener>
    
	<appender class="ch.qos.logback.core.ConsoleAppender" name="CONSOLE_A">
		<!-- filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>warn</level> 
			</filter -->
		<encoder>
			<pattern>%d{HH:mm:ss.SSS} [%p] %c [%t] - %m%n</pattern>
		</encoder>
	</appender>
	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender"
		name="FILE_LOGGER">
		<file>${logFilePath}/BiDiBWizard2.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2.%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 name="ASYNC_FILE_LOGGER" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="FILE_LOGGER" />
        <queueSize>1500</queueSize>
        <discardingThreshold>0</discardingThreshold>
    </appender>
	
    
	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="RXTX_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-RXTX.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-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 name="ASYNC_RXTX_LOGGER" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="RXTX_LOGGER" />
        <queueSize>1500</queueSize>
        <discardingThreshold>0</discardingThreshold>
    </appender>
	

	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="MSG_RAW_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-RAW.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-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 name="ASYNC_RAW_LOGGER" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="MSG_RAW_LOGGER" />
        <queueSize>1500</queueSize>
        <discardingThreshold>0</discardingThreshold>
    </appender>
	
    
	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="DEBUG_RAW_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-DEBUG-RAW.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-DEBUG-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="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="DYNSTATE_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-DYNSTATE.log</file>
		<append>false</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-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="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="OPS">
		<file>${logFilePath}/BiDiBWizard2-OPS.log</file>
		<append>false</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-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="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="SIM_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-SIM.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-SIM.%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{HH:mm:ss.SSS} [%p] %c [%t] - %m%n</pattern>
		</encoder>
	</appender>
	
	
    <appender name="ASYNC_SIM_LOGGER" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="SIM_LOGGER" />
        <queueSize>1500</queueSize>
        <discardingThreshold>0</discardingThreshold>
    </appender>

	
	
	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="MEASUREMENT_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-MEASUREMENT.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-MEASUREMENT.%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{HH:mm:ss.SSS} [%p] %c [%t] - %m%n</pattern>
		</encoder>
	</appender>
	
	
    <appender name="ASYNC_MEASUREMENT_LOGGER" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="MEASUREMENT_LOGGER" />
        <discardingThreshold>0</discardingThreshold>
    </appender>
	
	
	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="DRIVE_ACK_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-DRIVE_ACK.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-DRIVE_ACK.%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}: [%p] - %m%n</pattern>
		</encoder>
	</appender>

    <appender name="ASYNC_DRIVE_ACK_LOGGER" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="DRIVE_ACK_LOGGER" />
        <discardingThreshold>0</discardingThreshold>
    </appender>

	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="MDNS">
		<file>${logFilePath}/BiDiBWizard2-MDNS.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-MDNS.%i.log.zip</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>3</maxIndex>
		</rollingPolicy>

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

		<encoder>
			<pattern>%d{dd.MM.yyyy HH:mm:ss.SSS}: [%p] %c [%t] - %m%n</pattern>
		</encoder>
	</appender>
	
	<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="RXTX_NET">
		<file>${logFilePath}/BiDiBWizard2-RXTX-NET.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-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>
	
		<appender class="org.bidib.wizard.logback.CleanAtStartRollingFileAppender" name="Z21_LOGGER">
		<file>${logFilePath}/BiDiBWizard2-Z21.log</file>
		<append>${logFileAppend}</append>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${logFilePath}/BiDiBWizard2-Z21.%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 name="ASYNC_Z21_LOGGER" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="Z21_LOGGER" />
        <queueSize>1500</queueSize>
        <discardingThreshold>0</discardingThreshold>
    </appender>
	
	<logger additivity="false" level="INFO" name="RAW">
		<appender-ref ref="ASYNC_RAW_LOGGER" />
	</logger>
	<logger additivity="false" level="INFO" name="TX">
		<appender-ref ref="ASYNC_RXTX_LOGGER" />
	</logger>
	<logger additivity="false" level="INFO" name="RX">
		<appender-ref ref="ASYNC_RXTX_LOGGER" />
	</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="DEBUG_RAW">
		<appender-ref ref="DEBUG_RAW_LOGGER" />
	</logger>

	<logger additivity="false" level="INFO" name="org.bidib.wizard.simulation" >
		<appender-ref ref="ASYNC_SIM_LOGGER" />
	</logger>

	<logger additivity="false" level="INFO" name="MEASUREMENT" >
		<appender-ref ref="ASYNC_MEASUREMENT_LOGGER" />
	</logger>
	<logger additivity="false" level="INFO" name="DRIVE_ACK">
		<appender-ref ref="ASYNC_DRIVE_ACK_LOGGER" />
	</logger>

	<logger additivity="false" level="TRACE" name="javax.jmdns">
		<appender-ref ref="MDNS" />
	</logger>
	<logger additivity="true" level="DEBUG" name="org.bidib.wizard.discovery">
		<appender-ref ref="MDNS" />
	</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="Z21">
		<appender-ref ref="ASYNC_Z21_LOGGER" />
	</logger>

	<logger level="ERROR" name="org.bidib.wizard.core.labels" />
	<!--
	<logger level="INFO" name="org.bidib.wizard.core.labels.DefaultWizardLabelFactory" />
	-->

	<logger level="WARN" name="org.bidib.jbidibc.simulation" />
	<logger level="INFO"
		name="org.bidib.jbidibc.simulation.comm.SimulationBidib" />
		
<!-- 	<logger level="DEBUG" name="javax.jmdns" /> -->
<!--- 	<logger level="TRACE" name="org.bidib.wizard.common.utils.NetworkAddressHelper" />-->
		
	<root level="INFO">
		<appender-ref ref="CONSOLE_A" />
		<appender-ref ref="ASYNC_FILE_LOGGER" />
	</root>
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy