[logback-user] Custom LayoutWrappingEncoder question

Adam Gordon adam.n.gordon at gmail.com
Wed Jan 18 21:30:52 CET 2012


Worked like a charm.  Thanks!

On Jan 17, 2012, at 6:46 PM, Tony Trinh wrote:

> There's a bug at line 98. You need to use Layout.doLayout(event) instead of event.getFormattedMessage(). I've commented here.
> 
> 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
> 
> _______________________________________________
> 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/20120118/f2328ef6/attachment.html>


More information about the Logback-user mailing list