I had a look to the slfj4j-api. There is one function I'm missed:
public void log(String callerFQCN, Priority level, Object message,
Throwable t). Without a possibility to define the callerFQCN, you
can't implement the Logger class correctly. Has anyone information how
to solve this?
Niels
On 27 Aug., 02:34, wyz <
wangyiz...@gmail.com> wrote:
> AFAIK,slf4jis included in play's libraries and you can use its API
> for logging. The only limitation is you cannot choose any other
> implementation but log4j (i.e. you cannot use logback instead).
>
> On Aug 27, 12:33 am, Mike <
mimbo...@gmail.com> wrote:
>
> > I would prefer a migration to Logback as well, as Logback is actually
> > intended to be the successor to log4j. Logback was designed by
> > log4j's founder, Ceki Gülcü.
>
> > At the very least, I feel playframework should includeslf4j, so
> > people can drop in their choice of logging implementations.
>
> > Here's a quick visual onslf4j:
http://www.slf4j.org/images/bindings.png.
> > And both log4j and Logback bindings are available.
>
> > On Aug 26, 6:51 am, GrailsDeveloper <
opensourc...@googlemail.com>
> > wrote:
>
> > > Hi
>
> > > On 26 Aug., 14:12, Mathias Bogaert <
mathias.boga...@gmail.com> wrote:
>
> > > > Err. Parts of Logback that are not 'free'?? I can't find anything like
> > > > that. Readhttp://
logback.qos.ch/license.html
>
> > > You are right, currently all parts are opensource. Sorry for the wrong
> > > information.
>
> > > >SLF4Jis written for multiple implementations. It has interfaces that
> > > > allow this.
>
> > > Yes but the glue classes which implements the interfaces ignore in
> > > some cases the information you put into it. Of course I could write my
> > > own implementation to fix it, but I think this isn't the idea of an
> > > interface.
>
> > > > Logback andSLF4Jare more mature than Log4J and commons-logging IMO.
>
> > > May be, I didn't find any information which shows this. There exist
> > > good arguments why commons-logging in servlet container are not so
> > > good asslf4j, but that's all I know. So I don't see a technical