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 » System.out when using JCN

Post new topic  Reply to topic
 System.out when using JCN « View previous topic :: View next topic » 
Author Message
saviobarr
PostPosted: Sun Nov 29, 2015 11:45 pm    Post subject: System.out when using JCN Reply with quote

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
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Mon Nov 30, 2015 12:10 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.

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
View user's profile Send private message
saviobarr
PostPosted: Mon Nov 30, 2015 12:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Mon Nov 30, 2015 1:42 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.

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
View user's profile Send private message
saviobarr
PostPosted: Mon Nov 30, 2015 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Nov 30, 2015 6:45 am    Post subject: Reply with quote

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
View user's profile Send private message
saviobarr
PostPosted: Mon Nov 30, 2015 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Nov 30, 2015 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
saviobarr
PostPosted: Mon Nov 30, 2015 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Nov 30, 2015 11:11 am    Post subject: Reply with quote

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
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 » System.out when using JCN
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.