There’s also the string substitutor classes, but they use a different
syntax. There’s also MessageFormat in the JDK.

On Fri, Jul 10, 2020 at 06:31 Gary Gregory <garydgreg...@gmail.com> wrote:

> If this is for logging, most logging APIs like Log4j already provide this
> type of functionality.
>
> Gary
>
> On Fri, Jul 10, 2020, 07:19 Enrico Olivelli <eolive...@gmail.com> wrote:
>
> > Sergei,
> > doesn't java.lang.String#format fit your need ?
> >
> > just my 2 cents
> > Enrico
> >
> > Il giorno ven 10 lug 2020 alle ore 13:14 <sergei.visot...@gmail.com> ha
> > scritto:
> >
> > > Hi,
> > >
> > >
> > >
> > > I am a Java Developer and during my development practice I have some
> new
> > > functionality to provide for an Apache Commons Lang3 library -
> > StringUtils
> > > class.
> > >
> > > As is writted in CONTRIBUTING.md I would like to discuss with you
> first.
> > >
> > > The main purpose of a changes I would like to provide is to add an
> > ability
> > > for format any kind of message in the following way.
> > >
> > >
> > >
> > > Example:
> > >
> > > Input:
> > >
> > > We have happened an error {} with some kind of specific interesting
> > thing:
> > > {}, ERROR_1, something
> > >
> > >
> > >
> > > Output:
> > >
> > > We have happened an error ERROR_1 with some kind of specific
> interesting
> > > thing: something
> > >
> > >
> > >
> > > There are some additional new functuionality that I would like to offer
> > to
> > > StringUtils, similar to the following.
> > >
> > > So if it is in scope of Commons I would like to create a Pull Request
> > with
> > > a
> > > changes proposal.
> > >
> > > The main question: Does it need to Commons Lang or not?
> > >
> > >
> > >
> > > Kind regards,
> > >
> > > Sergei Visotsky
> > >
> > >
> > >
> > >
> >
>
-- 
Matt Sicker <boa...@gmail.com>

Reply via email to