<html><head><base href="x-msg://1533/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The data in the MDC will be associated with every log record you generate.  We use that for the user's login id, the name of the product, the host name, etc. IOW, the things that are constant during the work that is going on.<div><br></div><div>EventData is for something you want to record in a single log record in addition to the MDC data. So if the user is logging in we have a login event, if they are performing a transfer of money from one account to another then the EventData contains the amount, the transfer-to account number and the transfer-from account number. If they are performing an SSO to another system the EventData would include information about that.</div><div><br></div><div>In other words, we use it for Audit logging.</div><div><br></div><div>You will notice that EventLogger uses a Marker. This allows us to set up a TurboFilter to always accept those records. We then route them via the EventLogger to their own location, separate from Debug log records.</div><div><br></div><div>Unfortunately, their are two major issues we have with this design:</div><div>1. The MarkerFilter (actually the Marker itself) is synchronized and becomes a huge bottleneck under load.</div><div>2. Logback loses events when it is reconfigured, which really isn't acceptable for audit logging.</div><div><br></div><div>Ralph </div><div><br><div><div>On Nov 28, 2011, at 4:19 AM, Yuvaraj Vanarase wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="EN-US" link="blue" vlink="purple"><div class="Section1" style="page: Section1; "><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); ">Hi,<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); "><o:p> </o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); ">Not able to understand the connection between MDC and EventLogger (slf4j). What I understood is, instead of doing separate log requests, one can populate EventData object and log the object by EventLogger.<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); "><o:p> </o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); ">Anybody could illustrate this concept please?<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); "><o:p> </o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10.5pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); ">Regards,<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10.5pt; font-family: 'Times New Roman', serif; color: rgb(5, 34, 249); ">Yuvaraj<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><b><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: black; "><o:p> </o:p></span></b></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><b><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: black; ">Yuvaraj Vanarase,</span></b><b><span style="font-size: 13pt; font-family: Garamond, serif; color: navy; "><br></span></b><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: black; ">Lead Technology – Software</span><b><span style="font-family: Garamond, serif; color: black; "><br></span></b><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: black; ">Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 |</span><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(5, 34, 249); "> </span><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(5, 34, 249); "><a href="http://www.synechron.com" style="color: blue; text-decoration: underline; "><span style="color: blue; ">http://www.synechron.com</span></a></span><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(5, 34, 249); "><br></span><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(255, 102, 0); ">SYNECHRON -</span><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(255, 102, 0); "> </span><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(255, 102, 0); "><br>- Top 15 Best IT Employers for 5 consecutive years (<a href="http://www.synechron.com/news/news_best_employer_sep2011.htm" style="color: blue; text-decoration: underline; "><span style="color: rgb(255, 102, 0); ">link</span></a>).<br>- Celebrating 10 Years!</span><span style="color: rgb(5, 34, 249); "><o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div></div>_______________________________________________<br>Logback-user mailing list<br><a href="mailto:Logback-user@qos.ch" style="color: blue; text-decoration: underline; ">Logback-user@qos.ch</a><br><a href="http://mailman.qos.ch/mailman/listinfo/logback-user" style="color: blue; text-decoration: underline; ">http://mailman.qos.ch/mailman/listinfo/logback-user</a></div></span></blockquote></div><br></div></body></html>