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

agri-server-hazelcast.1.2.0.source-code.logging.xml Maven / Gradle / Ivy

The newest version!
<included>

    <jmxConfigurator/>
    
    <!--contextName>bdb-cache</contextName-->
    <!--property resource="bdb-cache.properties" /-->

    <if condition='isDefined("node.name")'>
        <then>
            <property name="prefix" value="${node.name}"/>
        </then>
        <else>
            <property name="prefix" value="bdb"/>
        </else>
    </if>

    <if condition='isDefined("node.instance")'>
        <then>
            <property name="suffix" value="${node.instance}"/>
        </then>
        <else>
            <timestamp key="suffix" datePattern="yyyyMMdd'T'HHmmss"/>
        </else>
    </if>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    	<encoder>
        	<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{64} - %msg%n</pattern>
    	</encoder>
    </appender>

    <if condition='isDefined("node.logdir")'>
        <then>
            <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
    	        <file>${node.logdir}/cache/${prefix}-server-${suffix}.log</file>
                <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      		    <!-- rollover daily -->
      		    <fileNamePattern>${node.logdir}/cache/${prefix}-server-${suffix}-%d{yyyy-MM-dd}.%i.gz</fileNamePattern>
      		    <maxHistory>4</maxHistory>
      		    <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
        		<!-- or whenever the file size reaches 50MB -->
        		<maxFileSize>50MB</maxFileSize>
      		    </timeBasedFileNamingAndTriggeringPolicy>
    	        </rollingPolicy>
    	        <encoder>
        	    <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{64} - %msg%n</pattern>
    	        </encoder>
            </appender>
        </then>
    </if>

    <logger name="com.bagri">
        <level value="${bdb.log.level}"/>
    </logger>

    <logger name="io.swagger">
        <level value="${swagger.log.level:-info}"/>
    </logger>

    <logger name="org.reflections">
        <level value="${swagger.log.level:-info}"/>
    </logger>

    <logger name="org.eclipse.jetty">
        <level value="${jetty.log.level:-info}"/>
    </logger>

    <logger name="org.springframework">
        <level value="${spring.log.level:-info}"/>
    </logger>

    <root level="debug">
        <appender-ref ref="STDOUT"/>
        <if condition='isDefined("node.logdir")'>
            <then>
                <appender-ref ref="ROLLING"/>
            </then>
        </if>
    </root>

</included>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy