logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xen <...@dds.nl>
Subject Re: Name org.apache.logging.log4j.junit.InitialLoggerContext class
Date Sat, 29 Aug 2015 19:24:02 GMT
Ha, you can make it PrimaryJUnitLoggerContextRule if you want ;-).

or PrimaryLoggerContextJUnitRule ;-).

Regards.

On Sat, 29 Aug 2015, Gary Gregory wrote:

> Hi All,
>
> I was going to write a couple of blog posts this weekend about log4j and I
> was going to start by talking about how useful our InitialLoggerContext
> test class is to isolate logging configs for specific tests, but I find the
> class name misleading. The class is a JUnit Rule so it should be postfixed
> with "Rule" IMO and the "Initial" prefix is just weird, initial as opposed
> to what? We have no other LoggerContext JUnit rules. I would not mind
> renaming this class to LoggerContextRule. That name is clear and there can
> be no mistake that this is not a special kind of LoggerContext. I could
> even go for LoggerContextJUnitRule to make it clear that it is for use with
> JUnit and not in any other kind of code.
>
> Thoughts?
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message