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