[logback-user] Custom LayoutWrappingEncoder question
tony19 at gmail.com
Wed Jan 18 02:46:53 CET 2012
There's a bug at line
You need to use Layout.doLayout(event) instead of
event.getFormattedMessage(). I've commented
On Tue, Jan 17, 2012 at 6:41 PM, Adam Gordon <adam.n.gordon at gmail.com>wrote:
> Of course. Code is available here:
> The outcome is that it appears that my encoder completely ignores any of
> the pattern stuff. This leads me to believe I'm supposed to call something
> in my encoder to do this - I'd assumed that it would happen automatically.
> On Tue, Jan 17, 2012 at 16:21, Tony Trinh <tony19 at gmail.com> wrote:
>> On Tue, Jan 17, 2012 at 4:32 PM, Adam Gordon <adam.n.gordon at gmail.com>wrote:
>>> I was missing the <pattern> element. Adding got rid of the error
>>> message, but my output is not being formatted. It's like its ignoring the
>>> pattern and layout.
>> Including your code and complete logback.xml would be most helpful...
>> What exactly is the outcome? Describe the output (or paste it here).
>> Logback-user mailing list
>> Logback-user at qos.ch
> Logback-user mailing list
> Logback-user at qos.ch
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Logback-user