ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Log4j properties file not reflecting changes

Post new topic  Reply to topic
 Log4j properties file not reflecting changes « View previous topic :: View next topic » 
Author Message
Warrior_Archangel
PostPosted: Mon Jun 15, 2015 9:38 am    Post subject: Log4j properties file not reflecting changes Reply with quote

Newbie

Joined: 15 Jun 2015
Posts: 3

Hi All,

I am having an issue with log4j properties not getting refreshed. I am using log4j logger to log to a file by using a Java Compute Node(JCN). Even though I am able to log messages, I cannot log to any different file/path except one file. In ideal case, a broker restart should reflect changes in properties file right ?

Initially, I started using the plugin node from IAM3 support pack, later used log4j functions from esql. Then I switched to using JCN for logging as most of the project code is written in Java(IBM Retail pack).

problem started when I wanted to log to multiple files and changed the file path in Log4j.properties(and BrokerLog.xml) file and the logger kept logging to previous file location even after restarts and other things.

Hope this is not too confusing , I need some help in understanding this situation.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 15, 2015 10:20 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you'd need to set up a configurable service and pass the path to the log4j config file there.

But it might be easier to just switch to java.util.logging...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Warrior_Archangel
PostPosted: Mon Jun 15, 2015 10:48 am    Post subject: Reply with quote

Newbie

Joined: 15 Jun 2015
Posts: 3

Thank you fjb_saper, will try both
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Log4j properties file not reflecting changes
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.