> There is any T5 Elegant way so I can automatically switch between  
> distincts Log4J configurations 

Yes, I simply place mine side by side in src/main/resources and then just 
supply a JVM argument to choose the correct one in production, i.e.: 
-Dlog4j.configuration=log4j_prod.xml if you supply none the default will be 
log4j.properties / log4j.xml 

regards,
Peter


----- Original Message -----
From: "Igor Drobiazko" <igor.drobia...@gmail.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Friday, 19 February, 2010 10:10:50 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: [T5.1] Log4j and Application Development/Production Mode

Just put your log4j.properties into src/test/resources. This way the  
config file will be on the classpath of the dev environment and is not  
shipped inside the war. In production put the config file into the  
container.

18.02.2010, в 19:13, Everton Agner <everton_ag...@yahoo.com.br>  
написал(а):

> Hi,
>
> There is any T5 Elegant way so I can automatically switch between  
> distincts Log4J configurations related to Development/Production  
> Mode? We have the @Symbol "productionMode", so I believe there is  
> some way I can achieve that using this information...
>
> I saw something like that on an old Struts 1.3 application, so there  
> was a log4j.properties file on the project and, on the Deployment  
> Server, other log4j.properties (and some weird conf to make it  
> works). So, I could work on DEBUG mode on the Development  
> environment, and in ERROR mode on Deployment environment without  
> having to change.
>
> I don't want to do that here, though...
>
> Any help would be appreciated.
>
>
> Thanks!
>
> Everton
>
>
>
>       
> ____________________________________________________________________________________
 

> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to