[logback-dev] The encoder branch merged with master

Ceki Gülcü ceki at qos.ch
Tue Mar 2 15:55:23 CET 2010


My initial reaction is to let the encoder/decoder deal with this issue. Since 
the encoder can always write its header when its init() method is called, the 
decoder should check for file headers when it is reading in the stream.

On 02/03/2010 2:26 PM, Joern Huxhorn wrote:
> Hi Ceki,
>
> did you have the chance to think about a solution concerning the
> remaining issue of http://jira.qos.ch/browse/LBCORE-128 - namely the
> missing info about whether the stream is a fresh one or one that is
> appending to an already existing one?
>
> Regards & Thanks,
> Joern.
>
> On 02.03.2010, at 13:12, Ceki Gülcü wrote:
>
>> Hello,
>>
>>
>> This is to inform you that I have merge the encoder branch into the
>> master branch. I am still documenting the changes. In short,
>> WriterAppeder has been renamed as OutputStreamAppender, FileAppender
>> now sub-classing the latter. OutputStreamAppender and sub-classes now
>> take an Encoder instead of a Layout.
>>
>> Contrary to Layouts which simply transform a logging event into a
>> String, an encoder is responsible for writing the actual event or more
>> accurately the representation of the event into the output stream. The
>> role of the enclosing appender now only manages the output stream
>> (opening/closing) but not the actual contents written onto the stream.
>>
>> --
>> Ceki


More information about the logback-dev mailing list