Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » how to display log4j output in plugin console?
how to display log4j output in plugin console? [message #18657] Fri, 29 August 2008 09:38 Go to next message
Eclipse UserFriend
Originally posted by: soeren.dupke.gmx.de

hi,

i am new to plug-in developement and i wonder how to forward my log4j
output to the console of the runtime eclipse? do i have to write a
custom appender or is there an easier way to do that?

thank you very much!

kind regards,
sören dupke
Re: how to display log4j output in plugin console? [message #18680 is a reply to message #18657] Fri, 29 August 2008 10:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: soeren.dupke.gmx.de

i have got a solution using a custom appender, but am still interested
if there are other ways to log into the runtime eclipse console.

cheers,
sören

Sören Dupke schrieb:
> hi,
>
> i am new to plug-in developement and i wonder how to forward my log4j
> output to the console of the runtime eclipse? do i have to write a
> custom appender or is there an easier way to do that?
>
> thank you very much!
>
> kind regards,
> sören dupke
Re: how to display log4j output in plugin console? [message #19851 is a reply to message #18680] Sat, 06 September 2008 15:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.hewett.gmail.com

Sören Dupke wrote:
> i have got a solution using a custom appender, but am still interested
> if there are other ways to log into the runtime eclipse console.
>
> cheers,
> sören
>
Maybe I'm missing something, but can't you just use a console appender?

Mark
Re: how to display log4j output in plugin console? [message #20371 is a reply to message #18680] Tue, 09 September 2008 18:52 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Sören, you could hook in MessageConsole#newOutputStream into log4j's
WriterAppender.

-- Ketan

Sören Dupke wrote:
> i have got a solution using a custom appender, but am still interested
> if there are other ways to log into the runtime eclipse console.
>
> cheers,
> sören
>
> Sören Dupke schrieb:
>> hi,
>>
>> i am new to plug-in developement and i wonder how to forward my log4j
>> output to the console of the runtime eclipse? do i have to write a
>> custom appender or is there an easier way to do that?
>>
>> thank you very much!
>>
>> kind regards,
>> sören dupke
Re: how to display log4j output in plugin console? [message #20436 is a reply to message #19851] Wed, 10 September 2008 06:46 Go to previous message
Eclipse UserFriend
Originally posted by: soeren.dupke.gmx.de

Mark Hewett wrote:
> Maybe I'm missing something, but can't you just use a console appender?

When i used a console appender the it only logged into the pde console,
but not into the eclipse with my plugin.

Sören
Re: how to display log4j output in plugin console? [message #577892 is a reply to message #18657] Fri, 29 August 2008 10:58 Go to previous message
Eclipse UserFriend
Originally posted by: soeren.dupke.gmx.de

i have got a solution using a custom appender, but am still interested
if there are other ways to log into the runtime eclipse console.

cheers,
sören

Sören Dupke schrieb:
> hi,
>
> i am new to plug-in developement and i wonder how to forward my log4j
> output to the console of the runtime eclipse? do i have to write a
> custom appender or is there an easier way to do that?
>
> thank you very much!
>
> kind regards,
> sören dupke
Re: how to display log4j output in plugin console? [message #578908 is a reply to message #18680] Sat, 06 September 2008 15:55 Go to previous message
Eclipse UserFriend
Originally posted by: mark.hewett.gmail.com

Sören Dupke wrote:
> i have got a solution using a custom appender, but am still interested
> if there are other ways to log into the runtime eclipse console.
>
> cheers,
> sören
>
Maybe I'm missing something, but can't you just use a console appender?

Mark
Re: how to display log4j output in plugin console? [message #579381 is a reply to message #18680] Tue, 09 September 2008 18:52 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Sören, you could hook in MessageConsole#newOutputStream into log4j's
WriterAppender.

-- Ketan

Sören Dupke wrote:
> i have got a solution using a custom appender, but am still interested
> if there are other ways to log into the runtime eclipse console.
>
> cheers,
> sören
>
> Sören Dupke schrieb:
>> hi,
>>
>> i am new to plug-in developement and i wonder how to forward my log4j
>> output to the console of the runtime eclipse? do i have to write a
>> custom appender or is there an easier way to do that?
>>
>> thank you very much!
>>
>> kind regards,
>> sören dupke
Re: how to display log4j output in plugin console? [message #579531 is a reply to message #19851] Wed, 10 September 2008 06:46 Go to previous message
Eclipse UserFriend
Originally posted by: soeren.dupke.gmx.de

Mark Hewett wrote:
> Maybe I'm missing something, but can't you just use a console appender?

When i used a console appender the it only logged into the pde console,
but not into the eclipse with my plugin.

Sören
Previous Topic:Building an update site using PDE Build
Next Topic:Help plugin functions in 3.3, but not in 3.4
Goto Forum:
  


Current Time: Tue May 07 17:15:33 GMT 2024

Powered by FUDForum. Page generated in 0.04650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top