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 IndexWebSphere Message Broker (ACE) Supportlog4j on IIB10

Post new topicReply to topic
log4j on IIB10 View previous topic :: View next topic
Author Message
matuwe
PostPosted: Thu Oct 06, 2016 3:02 am Post subject: log4j on IIB10 Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi All,
I am exploring the different options we have with respect to logging in IIB. I am currently using IIB 10 with T24 adapters to send and receive data from T24..


I have tried to setup my logging as follows

Place the file “Logging.properties” anywhere, and give the path in JVM arguments with the below command :

mqsichangeproperties <brokerName> -o ComIbmJVMManager -n jvmSystemProperty -v"-DJULlog.configuration=<path_where_logging_properties_is_kept>/logging.properties -Dorg.jboss.logging.provider=JDK"


and my logging.properties looks as follows..

handlers = java.util.logging.ConsoleHandler,java.util.logging.FileHandler
.level = ALL
java.util.logging.ConsoleHandler.level=ALL
java.util.logging.FileHandler.level=ALL
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.pattern=C://Users/Desktop//log4j/newlog1.out
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.append=true..




I still do not have anything written to the log file.. Could I be missing something here? I am trying to track the data coming out of the T24 adapter into IIB.

Thanks
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Oct 06, 2016 10:49 am Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Log4j and Broker should be consigned to the trashcan.
There are better solutions builtin to the product.

Sadly (and at the risk of becoming boring) far too many Java devs log everything including the kitchen sink using things like Log4j. They need to be weaned/detoxed off it.
Then what happens when someone fogets to disable it and the full debug level logging flow gets deployed to PROD. I've seen a PROD serve brought to its knees because of this very issue. A critical filesystem (in your case the windows C: drive could become full. Windows does not like full filesystems any more then Unix/Linux.

No, no and thrice no. Don't do it.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Oct 07, 2016 5:28 am Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Use the log4j rolling log appender option to prevent the file system from filling up.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) Supportlog4j on IIB10
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.