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

<configuration>
    <timestamp key="dateByDay"  datePattern="dd_MM_yyyy"/>
    <property name="pattern" value="[FrontEnd] %d{HH:mm:ss.SSS} %-5level %logger{5} JobId =  %mdc{jobId} - %msg%n"/>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>${pattern}</pattern>
        </encoder>
    </appender>

    <appender name="SIFT" class="ch.qos.logback.classic.sift.SiftingAppender">
        <discriminator>
            <key>pid</key>
            <defaultValue>-1</defaultValue>
        </discriminator>
        <sift>
            <appender name="FILE" class="ch.qos.logback.core.FileAppender">
                <file>../var/FrontEnd_${pid}_${dateByDay}.log</file>
                <encoder>
                    <pattern>${pattern}</pattern>
                </encoder>
            </appender>
        </sift>
    </appender>

    <root level="DEBUG">
        <appender-ref ref="SIFT" />
    </root>

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

<configuration>
    <timestamp key="dateByDay"  datePattern="dd_MM_yyyy"/>
    <property name="pattern" value="[FrontEnd] %d{HH:mm:ss.SSS} %-5level %logger{5} %mdc - %msg%n"/>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>${pattern}</pattern>
        </encoder>
    </appender>

    <appender name="SIFT" class="ch.qos.logback.classic.sift.SiftingAppender">
        <discriminator>
            <key>pid</key>
            <defaultValue>-1</defaultValue>
        </discriminator>
        <sift>
            <appender name="FILE" class="ch.qos.logback.core.FileAppender">
                <file>../var/FrontEnd_${pid}_${dateByDay}.log</file>
                <encoder>
                    <pattern>${pattern}</pattern>
                </encoder>
            </appender>
        </sift>
    </appender>

    <root level="DEBUG">
        <appender-ref ref="SIFT" />
    </root>

</configuration>
Print all attributes in MDC.
Print all attributes in MDC.
