[slf4j-user] Mock logger binding for testing?

Robert Elliot rob at lidalia.org.uk
Fri Sep 17 22:58:56 CEST 2010


Personally I just use logback as my testing Logger - the ListAppender is a nice easy way to check logging events and you can set log levels programatically. 



On 17 Sep 2010, at 20:08, Greg Lindholm <greg.lindholm at gmail.com> wrote:

> I'm using SLF4J in a jar library project.
> For testing my classes I don't want to perform any real logging (I
> don't want to configure log4j).
> I would like to use dummy or mock logger binding where I could easily
> change the logging level programmatically and also retrieve the text
> and details of what was logged.
> 
> Does SLF4J provide anything like this?
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://qos.ch/mailman/listinfo/slf4j-user


More information about the slf4j-user mailing list