|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Broker redirect of stderr |
« View previous topic :: View next topic » |
Author |
Message
|
vivica12 |
Posted: Fri Aug 17, 2007 9:52 am Post subject: Message Broker redirect of stderr |
|
|
Acolyte
Joined: 13 Jul 2007 Posts: 58
|
I have Message Broker v6.1 installed. One of our development teams is using lo4j as a logging routine for all DataFlowEngines. Log4j writes it's output to stderr/stdout. I have finally found where these logs are located:
eg of log location for java component within MB:
/opt/IBM/MBRDEV/components/MBRDEV/e041b46d-1301-0000-0080-bd7ca5901427
This location is not intuitive, or easy to allow development access to for easy debugging.
Is there a way to change the location of the stderr/stdout files? I know that I can use the IBM_JAVA_OPTIONS to set properties on the Broker startup, but can't seem to find a cmd line property to redirect these.
We have attempted to change the log location within the log4j app using,
System.setOut(new PrintStream(new FileOutputStream(new File(SYSTEM_OUT_LOCATION)), appendToFile));
This was able to create and output a file where we wanted, but continuously over-wrote the file, rather then appending. We obviously need to keep the data in the file for debugging, rather then overwriting for each entry.
Any thoughts.
thanks _________________ Vivica - signing off |
|
Back to top |
|
 |
mlafleur |
Posted: Fri Aug 17, 2007 2:20 pm Post subject: |
|
|
Acolyte
Joined: 19 Feb 2004 Posts: 73
|
Create symbolic links using ln -s
OR
if you are going to use the change log location approach, do not create a new File every time -- reuse the same file object |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 17, 2007 2:40 pm Post subject: Re: Message Broker redirect of stderr |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
vivica12 wrote: |
I have Message Broker v6.1 installed. |
There is not a released version of v6.1.
If you are using a version of 6.1, then either you are very confused, or you are discussing things in a public forum that you have likely agreed NOT TO DISCUSS in a PUBLIC FORUM.
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vivica12 |
Posted: Mon Aug 20, 2007 5:15 am Post subject: apologies |
|
|
Acolyte
Joined: 13 Jul 2007 Posts: 58
|
My apologies
We had just been discussing the upcoming 6.1 and our possible plans before I posted this note, as well as being invovled in Websphere 6.1. We are on 6.0 in the environment. Sorry for my slip.
But the same issue still exists. Is there a cmd line option to be used wtih IBM_JAVA_OPTIONS for defining where your stderr/stdout write to? It does not seem to be configurable within Message Broker, as it is in something like Websphere App Server.
thanks _________________ Vivica - signing off |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 20, 2007 5:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It is not configurable with MB v6.
However, if you're already logging everything to stdout/stderr using Log4J, then you can configure where Log4J puts stdout/stderr.  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|