Posted: Fri Jan 18, 2008 8:55 am Post subject: log4j not working when runnning in MQ Services Panel
Apprentice
Joined: 17 Nov 2006 Posts: 34
I have a java app where we are using log4j and it logs fine when we are running it from a command line but not when running it from the MQ Services panel in MQExplorer. The app will come up but no log output is generated. I've tried specifying an absolute log path in the properties file, adding the properties file to the classpath etc. pretty much everything I've read to try on this forum. Any help would be appreciated.
Posted: Tue Feb 05, 2008 1:15 am Post subject: Re: log4j not working when runnning in MQ Services Panel
Apprentice
Joined: 14 Oct 2007 Posts: 44 Location: Texas, USA
psiracusa wrote:
I have a java app where we are using log4j and it logs fine when we are running it from a command line but not when running it from the MQ Services panel in MQExplorer. The app will come up but no log output is generated. .......
Try to use PropertyConfigurator in one of your java applications.
import PropertyConfigurator and configure it by giving the path of the log4j proerties file.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum