logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Unit testing log4j JMS Appender
Date Tue, 01 Apr 2014 19:41:59 GMT
On Tue, Apr 1, 2014 at 3:13 PM, Mohit Anchlia <mohitanchlia@gmail.com>wrote:

> Is there a stable version available?


Yes: https://logging.apache.org/log4j/2.x/


> How do I reload configuration?


Please see:
-
https://logging.apache.org/log4j/2.x/manual/configuration.html#AutomaticReconfiguration
-
https://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging/log4j/core/config/Reconfigurable.html#reconfigure()


> I am
> using log4j.properties and not xml
>

Log4j 2 does not support properties files for configuration. It might one
day, but not now.

Gary


>
> On Tue, Apr 1, 2014 at 12:09 PM, Gary Gregory <garydgregory@gmail.com
> >wrote:
>
> > You would be better served using version 2 which we are actively working
> > on.
> >
> > Gary
> >
> > -------- Original message --------
> > From: Mohit Anchlia <mohitanchlia@gmail.com>
> > Date:04/01/2014  15:01  (GMT-05:00)
> > To: Log4J Users List <log4j-user@logging.apache.org>
> > Subject: Unit testing log4j JMS Appender
> >
> > I am trying to unit test log4j with jms appender, however even before I
> > bring up the jms embedded broker service log4j.properties get loaded and
> it
> > fails to connect to the broker. Is there a way to reload log4j after the
> > broker is up?
> >
>



-- 
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message