[logback-user] creating an OutputstreamAppender
michael at tobedevoured.com
Fri Sep 27 04:40:46 CEST 2013
I am trying to manually create an OutputstreamAppender that writes to a
ByteArrayOutputStream. I am stumped by a NPE at
LayoutWrappingEncoder.doEncode(LayoutWrappingEncoder). Here is a gist
what I have so far. From all the examples I found on the web, it
appears correct. Sadly, it does not work.
What I find odd is that I am passing in a PatternEncoder, so how is the
LayoutWrappingEncoder being called? My understanding was
LayoutWrappingEncoder was for deprecated Layouts.
Any help would be greatly appreciated.
More information about the Logback-user