[logback-user] Logging encoded google protocol buffers with logback rolling file appender

Dave Johnston dave.johnston at me.com
Thu Aug 23 13:25:06 CEST 2012


Hi,

I'd like to log google protocol buffers received by my server to a file, for later offline processing (the data is in a byte[]).  This is something I only do in when a debug mode is enabled, but it is useful for diagnostics.

Ideally I'd like to use logback, but it doesn't seem to cater for binary data.

I saw this issue: http://jira.qos.ch/browse/LOGBACK-232 which is marked as fix, and is a request for the same thing.  But I can't figure out how to use this with a normal rolling file appender.

Does anyone have any examples of doing this?

Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120823/359f6745/attachment.html>


More information about the Logback-user mailing list