Hi Ceki and Joern,<br><br>Remember the Encoder interface we discussed in the past ?<br>To make the aspect of encoding a LoggingEvent pluggable, and thus the Appender implementation more reusable.<br><br>I have small prototype here :  <br>
<br><a href="http://tinyurl.com/encoder-interface">http://tinyurl.com/encoder-interface</a><br><a href="http://tinyurl.com/encoder-example">http://tinyurl.com/encoder-example</a><br><br>regards,<br>Maarten<br><br><div class="gmail_quote">
On Fri, Jul 31, 2009 at 5:51 PM, Ceki Gulcu <span dir="ltr">&lt;<a href="mailto:ceki@qos.ch">ceki@qos.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Joern,<br>
<br>
Plese enter a bug report with as much information as you can about the<br>
code you&#39;d like to see changed.  In principle, very little code is<br>
involved in actually writing to the file so the task would seem rather<br>
easy. However, WriterAppender on which FileAppender and<br>
RollingFileAppender are built upon uses a Writer to write whatever it<br>
is that needs to be written. Unfortunately, a Writer knows how to<br>
writes String or chars, but not bytes.<br>
<br>
Nevertheless, I think it&#39;s feasible with some work...<br>
<br>
Joern Huxhorn wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi Ceki.<br>
<br>
I&#39;ve seen that you are working on the FileAppenders again. Have you seen this mail I wrote? What do you think about it?<br>
<br>
Joern.<br>
<br>
Begin forwarded message:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
*From: *Joern Huxhorn &lt;<a href="mailto:jhuxhorn@googlemail.com" target="_blank">jhuxhorn@googlemail.com</a> &lt;mailto:<a href="mailto:jhuxhorn@googlemail.com" target="_blank">jhuxhorn@googlemail.com</a>&gt;&gt;<div class="im">
<br>
*Date: *23. April 2009 18:38:38 MESZ<br></div>
*To: *logback developers list &lt;<a href="mailto:logback-dev@qos.ch" target="_blank">logback-dev@qos.ch</a> &lt;mailto:<a href="mailto:logback-dev@qos.ch" target="_blank">logback-dev@qos.ch</a>&gt;&gt;<div class="im"><br>

*Subject: **Question about a custom binary file appender.*<br>
<br>
Hi Ceki.<br>
<br>
I&#39;d like to implement a file appender that writes the binary Lilith<br>
format, i.e. gzipped protobuf-serialized events, instead of Strings.<br>
I&#39;d also like to have the same functionality that&#39;s supported by<br>
RollingFileAppender right now.<br>
<br>
Unfortunately, there seems to be no way to simply write bytes instead of<br>
a String. How would you go from here?<br>
Reimplementing everything from the start seems to be a pretty bad idea.<br>
<br>
What do you think about enhancing the RFA so it&#39;s using byte[] instead<br>
of Strings? The current behavior could be implemented using those<br>
methods + string.getBytes(&quot;UTF-8&quot;) or CharsetEncoder...<br>
<br>
Any idea, suggestions?<br>
<br>
Regards,<br>
Joern.<br>
<br>
</div></blockquote>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
logback-dev mailing list<br>
<a href="mailto:logback-dev@qos.ch" target="_blank">logback-dev@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-dev" target="_blank">http://qos.ch/mailman/listinfo/logback-dev</a><br>
</blockquote>
<br>
-- <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-dev mailing list<br>
<a href="mailto:logback-dev@qos.ch" target="_blank">logback-dev@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-dev" target="_blank">http://qos.ch/mailman/listinfo/logback-dev</a><br>
</blockquote></div><br>