Author |
Message
|
ceteareth |
Posted: Sun Sep 02, 2012 11:07 pm Post subject: Broker specific config file location |
|
|
Acolyte
Joined: 12 Aug 2012 Posts: 51
|
I have a logback.xml which i saved in 'IBM\MQSI\Common\wsrr'. As part of the requirement i need to log all the services per broker. right now all logs per service per broker are configured in one xml file and the logger is named like <broker>_service1. I think it would be better if i have a config file per broker rather than having only one for all the services in all the brokers. Is there a file location specific to a broker which does the same thing as 'IBM\MQSI\Common\wsrr' ? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 03, 2012 3:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
WMB doesn't use config files in that way, and what you're describing sounds a lot like the log4j config file to me.
On that basis, at least one person will be along in a moment (or possibly tomorrow depending on Labor Day plans) with a wealth of advice on using it.
IMHO if you a common location for all of the configuration files, create one & get the brokers to use it. You've already added the relevant jar files to (presumably) a common location rather than each flow using the function including them. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Sep 06, 2012 5:39 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 06, 2012 6:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Clearly your Labor Day plans were more expansive than I thought. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mapa |
Posted: Sun Sep 09, 2012 3:05 pm Post subject: |
|
|
 Master
Joined: 09 Aug 2001 Posts: 257 Location: Malmö, Sweden
|
I've abandoned log4j and use Slf4j with Logback (which implements SLF4J natively).
I am using the logback.configurationFile JVM system property to set the location of the logback.xml
Oddly enough on the broker I had to add the "file:/" to the property, otherwise I get an exception in sun.misc.URLClassPath which I did not get on my Oracle JVM:
Code: |
mqsichangeproperties MB8BROKER -e default -o ComIbmJVMManager -n jvmSystemProperty -v"-Dlogback.configurationFile=file:/C:/path/logback.xml"
|
You have to do this per ExecutionGroup though.
(Yes, I know, Windows and also WMB 8.0.0.0) |
|
Back to top |
|
 |
ceteareth |
Posted: Sun Sep 09, 2012 9:36 pm Post subject: |
|
|
Acolyte
Joined: 12 Aug 2012 Posts: 51
|
Thanks. i will try this out.  |
|
Back to top |
|
 |
|