facebook

How to stop Redirecting System.out & System.err to log f

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #320106 Reply

    ericrivera
    Participant

    How 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

    #320191 Reply

    support-tony
    Keymaster

    eric,

    I’m afraid there is no way to alter the redirection. Could you let us know why the redirection is a problem for you?

    #320196 Reply

    ericrivera
    Participant

    Tony,

    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

    #320226 Reply

    support-tony
    Keymaster

    Eric,

    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?

    #320271 Reply

    ericrivera
    Participant

    Thanks 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

    #320292 Reply

    Brian Fernandes
    Moderator

    Eric,

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How to stop Redirecting System.out & System.err to log f

You must be logged in to post in the forum log in