All right, this is exactly what I think is happening. In fact of that, if you put a call to the toString() method explicitly in the log line, the eclipse plugin works right: <br><br>private Logger log = LoggerFactory.getLogger
(TestingLogback.class.getSimpleName());<br><br>Car car = new Car(&quot;Mercedes&quot;)<br>Integer aNumber = new Integer(2);<br>log.debug(&quot;A correct log line: {}&quot;, aNumber);<br>log.debug(&quot;A failed log line: {}&quot;, 
car.toString()); &lt;--------- toString() method called<br>log.debug(&quot;This line is unreachable for the logback plugin&quot;);<br><br>In this case, the eclipse plugin shows this output: <br><br>A correct line: 2<br>A failed log line: Mercedes
<br>This line is unreachable for the logback plugin<br><br>Your proposal for the resolution seems to be reasonable. Let&#39;s see what the developers think...<br><br><div><span class="gmail_quote">2007/9/26, Maarten Bosteels &lt;
<a href="mailto:maarten@apache.org">maarten@apache.org</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You are right, it doesn&#39;t work.
<br><br>I think this is happening:<br>* Logback is sending a serialized LoggingEvent over the socket<br>* the LoggingEvent has a reference to the foo.bar.Car instance<br>* the Eclipse plugin receives the bytes over the wire and tries to
<br>deserialize the LoggingEvent, this fails because the foo.bar.Car class<br>is not on the classpath.<br><br>Resolution: I think the SocketAppender should only send the formattedMessage<br>over the wire and not the argumentArray.
<br>In other words:&nbsp;&nbsp;argumentArray should be declared transient.<br><br>Let&#39;s see what the LogBack developers think about that ...<br><br>Maarten<br><br>On 9/26/07, Vicente Ferrer &lt;<a href="mailto:vteferrer@gmail.com">
vteferrer@gmail.com</a>&gt; wrote:<br>&gt; Hello,<br>&gt;<br>&gt; My problem occurs when I put an own object (like a instance of a bean named<br>&gt; &#39;Car&#39; created for me) in a logback log line. A code like this:<br>
&gt;<br>&gt; private Logger log =<br>&gt; LoggerFactory.getLogger(TestingLogback.class.getSimpleName<br>&gt; ());<br>&gt;<br>&gt; Car car = new Car(&quot;Mercedes&quot;);<br>&gt; Integer aNumber = new Integer(2);<br>&gt;<br>
&gt; log.debug(&quot;A correct log line: {}&quot;, aNumber);<br>&gt; log.debug(&quot;A failed log line: {}&quot;, car);<br>&gt; log.debug(&quot;This line is unreachable for the logback plugin&quot;);<br>&gt;<br>&gt; The logback plugin just shows:
<br>&gt;<br>&gt; ----<br>&gt; A correct log line: 2<br>&gt; ----<br>&gt;<br>&gt; And the plugin doesn&#39;t show the rest lines of the class on the logback<br>&gt; plugin. The &quot;Error Log&quot; plugin on Eclipse shows this error: &quot;There was an
<br>&gt; error trying to deserialize LoggingEvent:<br>&gt; java.lang.ClassNotFoundException: foo.bar.Car&quot;. But the<br>&gt; console appender shows correctly all the log lines (the console is showing<br>&gt; the output of the J2EE Server, and in its classpath, logback doesn&#39;t have
<br>&gt; any problem to reach the Car class)<br>&gt;<br>&gt; Thanks in advance<br>&gt;<br>&gt; 2007/9/26, Maarten Bosteels &lt;<a href="mailto:maarten@apache.org">maarten@apache.org</a>&gt;:<br>&gt; &gt; Hello,<br>&gt; &gt;
<br>&gt; &gt; I am using the LogBack Eclipse plugin.<br>&gt; &gt;<br>&gt; &gt; Eclipse version:<br>&gt; &gt; Version: 3.3.0<br>&gt; &gt; Build id: I20070621-1340<br>&gt; &gt;<br>&gt; &gt; I folowed the instructions from<br>
&gt; <a href="http://logback.qos.ch/consolePlugin.html">http://logback.qos.ch/consolePlugin.html</a><br>&gt; &gt; and I just tried with the logback.xml configuration file from the<br>&gt; &gt; instructions, and of course it works as well.
<br>&gt; &gt;<br>&gt; &gt; What exactly isn&#39;t working for you ?<br>&gt; &gt;<br>&gt; &gt; Maarten<br>&gt; &gt;<br>&gt; &gt; On 9/26/07, Vicente Ferrer &lt; <a href="mailto:vteferrer@gmail.com">vteferrer@gmail.com</a>&gt; wrote:
<br>&gt; &gt; &gt; Thanks for your response, Maarten.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; If you don&#39;t put the &lt;consolePlugin /&gt; tag on logback.xml, what do you<br>&gt; do to<br>&gt; &gt; &gt; show the logback log lines on eclipse plugin? Or... aren&#39;t you ussing
<br>&gt; that<br>&gt; &gt; &gt; plugin? Maybe are you using a log4j eclipse plugin, like Ganymede?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thanks again<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; 2007/9/25, Maarten Bosteels &lt; <a href="mailto:maarten@apache.org">
maarten@apache.org</a>&gt;:<br>&gt; &gt; &gt; &gt; I forgot to mention that I have not tried the &lt;consolePlugin /&gt; tag.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I used the following logback.xml :<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&gt; &gt; &gt; &gt; &lt;configuration&gt;<br>&gt; &gt; &gt; &gt; &lt;appender class=&quot;<br>&gt; ch.qos.logback.core.ConsoleAppender
&quot;<br>&gt; &gt; &gt; &gt; name=&quot;RootConsoleAppender&quot;&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter<br>&gt; &gt; &gt; class=&quot;ch.qos.logback.classic.filter.ThresholdFilter&quot;&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;level&gt;debug&lt;/level&gt;
<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/filter&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;layout<br>&gt; &gt; &gt; class=&quot;ch.qos.logback.classic.PatternLayout&quot;&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pattern&gt;%d{yyyy-MM-dd HH:mm:ss},%p,%c,%t %m%n&lt;/pattern&gt;
<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/layout&gt;<br>&gt; &gt; &gt; &gt; &lt;/appender&gt;<br>&gt; &gt; &gt; &gt; &lt;appender class=&quot;<br>&gt; &gt; &gt; ch.qos.logback.classic.net.SocketAppender&quot;<br>&gt; &gt; &gt; &gt; name=&quot;RootSocketAppender&quot;&gt;
<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter<br>&gt; &gt; &gt; class=&quot;ch.qos.logback.classic.filter.ThresholdFilter&quot;&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;level&gt;debug&lt;/level&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/filter&gt;
<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;remoteHost&gt;<a href="http://mortimer.example.com">mortimer.example.com</a>&lt;/remoteHost&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;port&gt;4321&lt;/port&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;reconnectionDelay&gt;30000&lt;/reconnectionDelay&gt;
<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;includeCallerData&gt;true&lt;/includeCallerData&gt;<br>&gt; &gt; &gt; &gt; &lt;/appender&gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &lt;root&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;level value=&quot;debug&quot;/&gt;
<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;appender-ref ref=&quot;RootConsoleAppender&quot;/&gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;appender-ref ref=&quot;RootSocketAppender&quot;/&gt;<br>&gt; &gt; &gt; &gt; &lt;/root&gt;<br>&gt; &gt; &gt; &gt; &lt;/configuration&gt;
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Maarten<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; On 9/25/07, Maarten Bosteels &lt; <a href="mailto:maarten@apache.org">maarten@apache.org</a>&gt; wrote:<br>&gt; &gt; &gt; &gt; &gt; I installed it today and it works.
<br>&gt; &gt; &gt; &gt; &gt; Haven&#39;t done extensive testing, but everything I tried (MDC and<br>&gt; &gt; &gt; &gt; &gt; throwables) seems to work.<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; I would have preferred that logging events were shown in a table
<br>&gt; &gt; &gt; &gt; &gt; (column per field)<br>&gt; &gt; &gt; &gt; &gt; instead of stringified. But I never use eclipse, so I don&#39;t really<br>&gt; care<br>&gt; &gt; &gt; :-)<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Is anyone working on a plugin for Intellij IDEA ?
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Maarten<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; On 9/25/07, Vicente Ferrer &lt; <a href="mailto:vteferrer@gmail.com">vteferrer@gmail.com</a>&gt; wrote:
<br>&gt; &gt; &gt; &gt; &gt; &gt; Hi to all,<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; I&#39;m having some problems with logback eclipse plugin... ¿somebody<br>&gt; has<br>&gt; &gt; &gt; used<br>&gt; &gt; &gt; &gt; &gt; &gt; the logback eclipse plugin with success?
<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; Thanks a lot.<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; &gt; &gt; logback-dev mailing list
<br>&gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:logback-dev@qos.ch">logback-dev@qos.ch</a><br>&gt; &gt; &gt; &gt; &gt; &gt; <a href="http://qos.ch/mailman/listinfo/logback-dev">http://qos.ch/mailman/listinfo/logback-dev
</a><br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; logback-dev mailing list
<br>&gt; &gt; &gt; &gt; <a href="mailto:logback-dev@qos.ch">logback-dev@qos.ch</a><br>&gt; &gt; &gt; &gt; <a href="http://qos.ch/mailman/listinfo/logback-dev">http://qos.ch/mailman/listinfo/logback-dev</a><br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; logback-dev mailing list<br>&gt; &gt; &gt; <a href="mailto:logback-dev@qos.ch">
logback-dev@qos.ch</a><br>&gt; &gt; &gt; <a href="http://qos.ch/mailman/listinfo/logback-dev">http://qos.ch/mailman/listinfo/logback-dev</a><br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________
<br>&gt; &gt; logback-dev mailing list<br>&gt; &gt; <a href="mailto:logback-dev@qos.ch">logback-dev@qos.ch</a><br>&gt; &gt; <a href="http://qos.ch/mailman/listinfo/logback-dev">http://qos.ch/mailman/listinfo/logback-dev</a>
<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; logback-dev mailing list<br>&gt; <a href="mailto:logback-dev@qos.ch">logback-dev@qos.ch</a><br>&gt; <a href="http://qos.ch/mailman/listinfo/logback-dev">
http://qos.ch/mailman/listinfo/logback-dev</a><br>&gt;<br>&gt;<br><br>_______________________________________________<br>logback-dev mailing list<br><a href="mailto:logback-dev@qos.ch">logback-dev@qos.ch</a><br><a href="http://qos.ch/mailman/listinfo/logback-dev">
http://qos.ch/mailman/listinfo/logback-dev</a><br><br></blockquote></div><br>