Author |
Message
|
saviobarr |
Posted: Sun Nov 29, 2015 11:45 pm Post subject: System.out when using JCN |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
Hi all,
I got a kind of silly question: When the JCN process a code, which contains a System.out.println("some thing"), where this output is printed?
Yes, I am beginner...
Nice week
[]'s |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Nov 30, 2015 12:10 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
It appears deep down in the directories of the Execution group where the flow is running. you may not have access to it.
Why not use building logging that is available for those who are subject to the torture (IMHO only) of having to use Java?
If you search this forum you will find lots of discussion about tit and why Log4J is not the answer to 'Life, the Universe and Everything'.
as you are a beginner why not start off by learing some good habbits? _________________ 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 |
|
 |
saviobarr |
Posted: Mon Nov 30, 2015 12:27 am Post subject: |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
smdavies99 wrote: |
It appears deep down in the directories of the Execution group where the flow is running. you may not have access to it.
Why not use building logging that is available for those who are subject to the torture (IMHO only) of having to use Java?
If you search this forum you will find lots of discussion about tit and why Log4J is not the answer to 'Life, the Universe and Everything'.
as you are a beginner why not start off by learing some good habbits? |
Hi,
We do use Log4j in our projects. The question is about a curiosity that just came out. I am not putting using System.out.println. Do you know where is the output? |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Nov 30, 2015 1:42 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
saviobarr wrote: |
Hi,
We do use Log4j in our projects. The question is about a curiosity that just came out. I am not putting using System.out.println. Do you know where is the output? |
That's why I said that Log4J is not the answer but there is an alternative to that and using system.out.whatever.
This is mentioned a good number of times in this forum whenever the subject of logging java (shudder) comes up. Go on, search for it and carry on with your learning. Don't get into the practice ofusing system.out.* in IIB/Broker projects. The output is not in a logical place.
Use a component that is available and one that allows you to control it.
If however you want to carry on using system.out.sefjf;lslkfjfsjkf then go ahead. You more than likely won't get much sympathy from those around here when things go wrong/missing/fill up disks/etc/etc/etc _________________ 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 |
|
 |
saviobarr |
Posted: Mon Nov 30, 2015 1:53 am Post subject: |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
saviobarr wrote: |
Hi,
We do use Log4j in our projects. The question is about a curiosity that just came out. I am not putting using System.out.println. Do you know where is the output? |
That's why I said that Log4J is not the answer but there is an alternative to that and using system.out.whatever.
This is mentioned a good number of times in this forum whenever the subject of logging java (shudder) comes up. Go on, search for it and carry on with your learning. Don't get into the practice ofusing system.out.* in IIB/Broker projects.
smdavies99 wrote: |
The output is not in a logical place. |
That's what I'd like to read. Again: I am not going to use system.out.println.
Use a component that is available and one that allows you to control it.
If however you want to carry on using system.out.sefjf;lslkfjfsjkf then go ahead. You more than likely won't get much sympathy from those around here when things go wrong/missing/fill up disks/etc/etc/etc |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Nov 30, 2015 6:45 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
On unix you will find it in a stdout file buried in the broker directories.
On windows you will find it in a console.txt file, buried in the broker directories.
Use java.util.logging. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
saviobarr |
Posted: Mon Nov 30, 2015 10:50 am Post subject: |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
mqjeff wrote: |
On unix you will find it in a stdout file buried in the broker directories.
On windows you will find it in a console.txt file, buried in the broker directories.
Use java.util.logging. |
Hi mqjeff,
Thanks for replying. Best answer so far...  |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Nov 30, 2015 10:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
saviobarr wrote: |
Best answer so far...  |
It's a bad habit. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
saviobarr |
Posted: Mon Nov 30, 2015 11:07 am Post subject: |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
mqjeff wrote: |
saviobarr wrote: |
Best answer so far...  |
It's a bad habit. |
Why? Not following you... Tks |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Nov 30, 2015 11:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
saviobarr wrote: |
mqjeff wrote: |
saviobarr wrote: |
Best answer so far...  |
It's a bad habit. |
Why? Not following you... Tks |
It's a joke. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|