- This topic has 5 replies, 3 voices, and was last updated 13 years, 1 month ago by Brian Fernandes.
-
AuthorPosts
-
ericriveraParticipantHow to stop Redirecting System.out & System.err to a log file. I had search every where and have not found a good answer. Where in the configuration is it?
Thanks,
eric
support-tonyKeymastereric,
I’m afraid there is no way to alter the redirection. Could you let us know why the redirection is a problem for you?
ericriveraParticipantTony,
Thanks for your response. The problem I am having is that all of my System.out.println messages are not showing in the logs either and I would like to see them.
Thanks,
eric
support-tonyKeymasterEric,
Your programs run in a separate virtual machine to the one used by MyEclipse and your System.out output should appear in the Console view within MyEclipse, provided you run your project from within the IDE.
Is that not happening?
ericriveraParticipantThanks for your reply Tony.
I am building an RCP project with many plugins. In my JPA plugin if I run a test class with a main the System.out in the entity classes that I call will display in the console. If I call the plugin entities from other plugins the System.out will not display on the console.
The message “Redirecting System.out and System.err to C:\dev\ME9.1\Common\logs\profile-rmb-XXXXXXX-console.log” is the last line on the console and if I open that log file it does not have any System.out or System.err. But I found that System.out and System.err goes to a log file named “explorer-console.log”.
IT LOOKS LIKE THE REDIRECT GOES TO THIS FILE INSTEAD OF “profile-rmb-XXXXXXX-console.log” AS INDICATED BY THE MESSAGE.
Is this the way it should be?
Thanks,
eric
Brian FernandesModeratorEric,
We’re looking into the logging.
However, I have another suggestion. I suppose you are launching your application from MyEclipse? Can you edit the launch configuration and remove plugins that you do not need from the Plugin tab? Or perhaps remove just the com.genuitec.* plugins – these have nothing to do with your application and removing them will ensure that your application runs in a clean environment, as intended.The plugins responsible for redirecting the logging will also be removed.
Hope this helps.
-
AuthorPosts