[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Problem with displaing info with log4j into created console


Hello There!

I'm developing an RCP plugin and faced with such  a problem:


The main's RCP function of my plugin is to display information about some busyness logic,so it consists of a perspective with a view. When starting, 2 new consoles for showing info are created and displaed.


Then I create 2 objects of the type MessageOuputStream messOut ans messErr
(for writing to these dynamically created consoles), and redirect System.out and System.err streams to them with System.setOut ans System.setErr methods.


When running my plugin in Runtime Workbench I see, that every sort of information, that I show with the help of system.out.println is displayed in my dynamically created consoles,so that is right.

But the piece of information,logged with the help of log4j, is displayed in the "old" working console of Eclipse IDE I'm running my RCP plugin from ..

There are no errors or warnings.Just the wrong console.

Has anybody got an idea why it's so?
Am I missing something, or am I doing smth wrong? (Very Likely, since I'm a newcomer in plugin development)


Thanks in advance!

P.S.
For logging I use log4j.1.4.28.jar which takes all it's settings from the log4j.properties file. Logging configuration has one logger which is binded to the consoleAppender.The .jar itself is included in /lib folder and added as a Classpath library in the Runtime tabsheet.