On Wed, Jul 11, 2012 at 3:39 PM, ceki <[email protected]> wrote: > > Sorry, I meant pluggable within logback-classic. I don't think slf4j-api is > the correct host for such a plugin.
My need is not to provide a plugin to change how MessageFormatter#format behave. I need a standard slf4j API to parse what is a syntax defined at slf4j level. My code that actually do the display does not know anything about the implementation of slf4j and should not. > > > On 11.07.2012 15:04, Thomas Mortagne wrote: >> >> On Wed, Jul 11, 2012 at 3:01 PM, Thomas Mortagne >> <[email protected]> wrote: >>> >>> On Wed, Jul 11, 2012 at 2:43 PM, ceki <[email protected]> wrote: >>>> >>>> Hi Thomas, >>>> >>>> This has been asked in the past. Could you please create a jira issue in >>>> http://jira.qos.ch asking the message formatting to be pluggable? >>> >>> >>> Sure. >> >> >> Well I can find only logback in http://jira.qos.ch and >> MessageFormatter is slf4j public API so not sure where to create the >> issue. >> >>> >>>> >>>> Thanks, >>>> -- >>>> Ceki >>>> http://twitter.com/#!/ceki >>>> >>>> >>>> >>>> >>>> On 11.07.2012 14:37, Thomas Mortagne wrote: >>>>> >>>>> >>>>> Hi guys, >>>>> >>>>> Hi have a Logback appender of my own in which I display the log but >>>>> not as a simple String. I especially have a different way of >>>>> displaying the arguments based on their type. >>>>> >>>>> org.slf4j.helpers.MessageFormatter is very useful for simple String >>>>> but I was wondering is there was any standard message pattern parser >>>>> which would allow be to get some kind of String[] version of the >>>>> message to do my own printing of arguments. A public method exposed in >>>>> MessageFormatter and reused in arrayFormat would be nice. >>>>> >>>>> It's not like it was something very hard to parse but would be cleaner >>>>> to use some standard parser than duplicating some code to do my own. >>>>> >>>>> Thanks, >>>>> >>> >>> >>> >>> -- >>> Thomas >> >> >> >> > > > -- > Ceki > http://twitter.com/#!/ceki > > > > _______________________________________________ > slf4j-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/slf4j-user -- Thomas _______________________________________________ slf4j-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/slf4j-user
