Ceki Culce,<div>Yes, you&#39;re absolutely right. </div><div>I do have log4cxx and log4j clients write to the same log4j SocketServer but things got little bit more complicated since the front-end of my app (a friend of mine is working on it) will be written in Adobe Flex.</div>
<div>I&#39;d like to be able to get anything an end-user does, whether he/she clicks on the &quot;OK&quot; button or a &quot;Cancel&quot; button or move some kind of slider to a different position etc. I&#39;d like to capture this &quot;event&quot;, log it by sending it to the same server that takes all the log messages from all the clients I have (C++, java and Flex) and writes them all to just one (in a perfect scenario) Rollover File Appender. </div>
<div>As you know (you&#39;ve written it  ;-) Log4j or Logback has such appender already and I&#39;m trying to utilize it.</div><div>I&#39;m not sure though if this is possible without running two or so servers that write to two different files.</div>
<div>(something I&#39;d like to avoid)</div><div>Thanks for asking and letting me know about the log4j compatible XMLLayout</div><div>I Appreciate, </div><div>Greg  <br><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">
On Wed, Mar 18, 2009 at 4:04 PM, Ceki Gulcu <span dir="ltr">&lt;ceki@qos.ch&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Greg,<br>
<br>
If I remember correctly, you already had log4cxx write to a log4j<br>
SocketServer using XML layout. You can do the same with logback&#39;s<br>
log4j compatible XMLLayout. See [1] for more information.<br>
<br>
HTH,<br>
<br>
[1] <a href="http://logback.qos.ch/manual/layouts.html#log4jXMLLayout" target="_blank">http://logback.qos.ch/manual/layouts.html#log4jXMLLayout</a><div class="im"><br>
<br>
<br>
Greg Flex wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ceki Culce,<br>
<br>
That worked.....<br>
Awesome. Thank You.<br>
I&#39;d like to ask you another question....<br>
I&#39;d like to use Logback instead of Log4j however Log4j server along with Log4cxx client and with SocketAppender<br>
&quot;understand&quot; each other. That is, I can log with log4j  Server messages (with the SocketAppender) that are<br>
coming from the Log4cxx clients and of course log4j clients. Then, I can write all these log messages to just one file<br>
on a server where my Log4j server is running.<br>
This is what I&#39;m really after. I know that Log4j, and I assume also logback as well, has JMSAppender.<br>
I don&#39;t know that much (yet) about JMS but I wonder if there&#39;s a way to use it to write messages coming<br>
from C++ client, Java or whatever client we may have.... (I know I need to handle Flex clients as well, Oh man!)<br>
I know you more knowledgeble in this area........<br>
Please let me know if there is a way to &quot;capture&quot; all these different log messages coming from different clients somehow<br>
and persist them to one repository (like a DB or a flat txt file)<br>
Thanks<br>
Greg.<br>
<br>
<br>
</blockquote></div><div><div></div><div class="h5">
-- <br>
Ceki Gülcü<br>
Logback: The reliable, generic, fast and flexible logging framework for Java.<br>
<a href="http://logback.qos.ch" target="_blank">http://logback.qos.ch</a><br>
_______________________________________________<br>
Logback-user mailing list<br>
Logback-user@qos.ch<br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</div></div></blockquote></div><br></div>