[logback-user] Where did WriterAppender go?
HamletDRC
hamletdrc at gmail.com
Wed Jun 9 11:23:26 CEST 2010
Wow, this is a really big change for doing something as simple as appending
to a String.
Are there examples anywhere of capturing output into a String or list of
Strings?
Ceki Gulcu wrote:
>
> Hello Hamlet,
>
> As of logback version 0.9.19, WriterAppender has been replaced by
> OutputStreamAppender. See also http://logback.qos.ch/news.html in
> particular the description of changes in version 0.9.19 copied below:
>
> Breaking change: FileAppender now expects an Encoder
>
> In response to LBCORE-128, WriterAppender 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 onto the output stream. The
> role of the enclosing appender is now limited to managing the output
> stream (opening/closing) but not writing actual contents onto the
> stream. This change will require modifications to existing
> configuration files. We hope to make up for this inconvenience with
> cool new features which are only possible using encoders. During a
> transition period, layouts passed as parameter will be automatically
> wrapped by an encoder so that configuration files in the old format
> (using a layout instead of encoder) will continue to work unmodifed.
>
>
> HTH,
>
> On 04/06/2010 10:36 AM, HamletDRC wrote:
>>
>> I was using LogBack 0.9.9 and the WriterAppender class.
>>
>> In my upgrade to 0.9.21 the class disappeared.
>>
>> Where did it go?
>>
>> -----
>> --
>> Hamlet D'Arcy
>>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
>
-----
--
Hamlet D'Arcy
--
View this message in context: http://old.nabble.com/Where-did-WriterAppender-go--tp28776288p28827870.html
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user
mailing list