<div dir="ltr">Hi everyone <div><br></div><div style>I am setting two variable in MDC and then in my appender in file tag i gave two variable ${configId} and ${threadName}. but when i run it i get only threadName value and for ${configId} it shows configId is UNDEFIND. but when the mdc context i found it is in the context, then why it giving error.</div>
<div style><div><br></div><div><appender name="SIFT" class="ch.qos.logback.classic.sift.SiftingAppender"></div><div> <discriminator class="com.hotwaxmedia.logger.ThreadNameBasedDiscriminator"/></div>
<div> <sift></div><div> <appender class="ch.qos.logback.core.FileAppender"></div><div> <file>runtime/logs/DataManagerLog/${configId}-${threadName}.html</file></div>
<div> <layout class="ch.qos.logback.classic.PatternLayout"></div><div> <pattern><div class="%p">%d \(${threadName} -%X{configId}\) [%logger{0} : %-5level] %msg%n%rEx</div></pattern></div>
<div> </layout></div><div> </appender></div><div> </sift></div><div> </appender></div><div><br></div><div style>please help.</div><div style><br></div><div style>
Praveen</div></div></div>