[logback-user] Custom LayoutWrappingEncoder question

Tony Trinh tony19 at gmail.com
Wed Jan 18 02:46:53 CET 2012


There's a bug at line
98<https://github.com/icfantv/color-logback/blob/master/FooLayoutWrappingEncoder.java#L98>.
You need to use Layout.doLayout(event) instead of
event.getFormattedMessage(). I've commented
here<https://github.com/icfantv/color-logback/commit/17374f0b017f37ffd36cb12788948b5c0d76126d>
.

On Tue, Jan 17, 2012 at 6:41 PM, Adam Gordon <adam.n.gordon at gmail.com>wrote:

> Of course.  Code is available here:
> https://github.com/icfantv/color-logback
>
> 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.
>
> --adam
>
> http://gordonizer.com
>
>
>
> 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).
>>
>> --adam
>>>
>>>
>> _______________________________________________
>> Logback-user mailing list
>> Logback-user at qos.ch
>> http://mailman.qos.ch/mailman/listinfo/logback-user
>>
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120117/bb0abe40/attachment.html>


More information about the Logback-user mailing list