<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>In my organization we use a mechanism very similar to that shown in&nbsp;<a href="http://www.slf4j.org/extensions.html#event_logger">http://www.slf4j.org/extensions.html#event_logger</a>. SLF4J doesn't provide standard key names or methods for common fields, but you can easily create a wrapper of the MDC to do this. We have a class called RequestContext that does exactly that. All our applications use that class to access the data in the MDC.<br><br>Ralph</div><div><br></div><div><div>On Aug 18, 2009, at 3:27 AM, haukex wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Hi all,<br><br>I am trying to figure out how a logging server can easily output some kind<br>of information about which client sent the logging message.<br><br>Log4j's SocketAppender has an "application" property that can be set that<br>causes the application name to be written to the MDC, so that on the server<br>that information is logged.<br><br>I am looking for an equivalent in Logback and would be greatful if anyone<br>could help out!<br><br>Thanks,<br>-- Hauke D<br><br>-- <br>View this message in context: <a href="http://www.nabble.com/SocketAppender-application-property-tp25009895p25009895.html">http://www.nabble.com/SocketAppender-application-property-tp25009895p25009895.html</a><br>Sent from the Logback User mailing list archive at Nabble.com.<br><br>_______________________________________________<br>Logback-user mailing list<br><a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>http://qos.ch/mailman/listinfo/logback-user<br></div></blockquote></div><br></body></html>