<div>Thanks, Ceki. I'm thinking we can put EclipseLogAppender.java in logback-extensions [1] and package it as a JAR that users could add to their Eclipse projects. Separating it from the main logback source makes sense to me especially because it depends on a couple Eclipse packages. A link to it from the <a href="http://logback.qos.ch">logback.qos.ch</a> (or the documentation therein) might be helpful for users to find it. Thoughts?</div>

<div><br></div><div>[1]: <a href="https://github.com/qos-ch/logback-extensions">https://github.com/qos-ch/logback-extensions</a></div><div><br></div><div><br></div><div><div class="gmail_quote">On Thu, May 24, 2012 at 12:34 PM, ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tony,<br>
<br>
Nice work! Do you have suggestions as how to package this code? Should be it be a Eclipse plugin? (I am assuming it can be anything else).<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Ceki<br>
<a href="http://twitter.com/#!/ceki" target="_blank">http://twitter.com/#!/ceki</a></font></span><div class="im"><br>
<br>
<br>
On <a href="tel:24.05.2012%2018" value="+12405201218" target="_blank">24.05.2012 18</a>:27, Tony Trinh wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Thu, May 24, 2012 at 11:25 AM, Tony Trinh <<a href="mailto:tony19@gmail.com" target="_blank">tony19@gmail.com</a><br></div><div><div class="h5">
<mailto:<a href="mailto:tony19@gmail.com" target="_blank">tony19@gmail.com</a>>> wrote:<br>
<br>
<br>
    See the attached sample project with this all working. I created the<br>
    EclipseLogAppender class, which writes to Eclipse's Error Log. (It<br>
    would be nice to add this class to logback's source, but it's<br>
    dependent on Eclipse packages...not sure how to handle that.) To run<br>
    the example:<br>
<br>
        1. From Eclipse, import the attached sample project (choose menu<br>
        "File > Import... > Existing Projects into Workspace").<br>
        2. Download logback-core-1.0.3.jar, logback-classic-1.0.3.jar,<br>
        and slf4j-api-1.6.4.jar into the project's "libs" directory.<br>
        3. Rebuild and run the project (which opens a new instance of<br>
        Eclipse).<br>
        4. From the new instance of Eclipse, open the Error Log (menu<br>
        "Window > Show Views > Error Log"), and choose menu "Sample Menu<br>
         > Sample Command". This causes a "Hello World" message box,<br>
        followed by a log entry in the Error Log.<br>
<br>
I updated EclipseLogAppender to decouple it from the plugin; it now<br>
requires the plugin bundle's symbolic name (as specified in the<br>
"Bundle-SymbolicName" property in the plugin's manifest), which is set<br>
in the logback config as seen below:<br>
<br>
<configuration><br>
<appender name="eclipse" class="ch.qos.logback.classic.<u></u>EclipseLogAppender"><br>
<encoder><br>
<pattern>[%method] > %msg%n</pattern><br>
</encoder><br>
<bundleName>com.example.e4.<u></u>helloworld</bundleName><br>
</appender><br>
<br>
<root level="TRACE"><br>
<appender-ref ref="eclipse" /><br>
</root><br>
</configuration><br>
<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</div></div></blockquote></div><br></div>