Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Integrate log4j in standalone-RCP-Application
Integrate log4j in standalone-RCP-Application [message #463491] Mon, 12 February 2007 13:47 Go to next message
Eclipse UserFriend
Originally posted by: unidad.gmx.net

Hi!

I'm new to RCP and building a little RCP Editor app.

I had the idea to provide some logging and tried to integrate log4j
in my RCP-application.

Unfortunately I don't manage to tell eclipse where the log4j.properties are.

(I know, that there other logging-ways, but I would like to get this
working.)

I tried to follow the instructions on:

http://www.leegrey.com/hmm/2004/07/22/1090536124000.html

to set a classpath-variable LOG4J_PROPS but actually I'm not sure where
to define this classpath-variable in eclipse 3.2.!

I have to choose a launch-configuration and then?
Tab Arguments -> Program-Arguments or VM-Arguments? Or tab environment
and there new environment variable?

Whatever I tried, didn't work.

Maybe anyone has got any idea.

Greetings, Hermann
Re: Integrate log4j in standalone-RCP-Application [message #463495 is a reply to message #463491] Mon, 12 February 2007 13:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

please read the thread "logger starting" from today in my last reply I
quote an URL pointing to an article outline how this is done.

Tom

Hermann Maier schrieb:
> Hi!
>
> I'm new to RCP and building a little RCP Editor app.
>
> I had the idea to provide some logging and tried to integrate log4j
> in my RCP-application.
>
> Unfortunately I don't manage to tell eclipse where the log4j.properties
> are.
>
> (I know, that there other logging-ways, but I would like to get this
> working.)
>
> I tried to follow the instructions on:
>
> http://www.leegrey.com/hmm/2004/07/22/1090536124000.html
>
> to set a classpath-variable LOG4J_PROPS but actually I'm not sure where
> to define this classpath-variable in eclipse 3.2.!
>
> I have to choose a launch-configuration and then?
> Tab Arguments -> Program-Arguments or VM-Arguments? Or tab environment
> and there new environment variable?
>
> Whatever I tried, didn't work.
>
> Maybe anyone has got any idea.
>
> Greetings, Hermann
Re: Integrate log4j in standalone-RCP-Application [message #463524 is a reply to message #463495] Tue, 13 February 2007 05:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

There is a good article
http://eclipsezone.com/articles/franey-logging/?source=archi ves
This one was given to me by Tom in that thread.
Tom Schindl wrote:
> Hi,
>
> please read the thread "logger starting" from today in my last reply I
> quote an URL pointing to an article outline how this is done.
>
> Tom
>
> Hermann Maier schrieb:
>> Hi!
>>
>> I'm new to RCP and building a little RCP Editor app.
>>
>> I had the idea to provide some logging and tried to integrate log4j
>> in my RCP-application.
>>
>> Unfortunately I don't manage to tell eclipse where the
>> log4j.properties are.
>>
>> (I know, that there other logging-ways, but I would like to get this
>> working.)
>>
>> I tried to follow the instructions on:
>>
>> http://www.leegrey.com/hmm/2004/07/22/1090536124000.html
>>
>> to set a classpath-variable LOG4J_PROPS but actually I'm not sure
>> where to define this classpath-variable in eclipse 3.2.!
>>
>> I have to choose a launch-configuration and then?
>> Tab Arguments -> Program-Arguments or VM-Arguments? Or tab environment
>> and there new environment variable?
>>
>> Whatever I tried, didn't work.
>>
>> Maybe anyone has got any idea.
>>
>> Greetings, Hermann
Re: Integrate log4j in standalone-RCP-Application [message #463620 is a reply to message #463524] Tue, 13 February 2007 12:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: unidad.gmx.net

Peter Osipov schrieb:
> There is a good article

Yes thanks!

I've read the article, but it was too complicated for my level of
knowledge. So I kicked away this log4j-thing and now I log with ILog. ;)

Greetings, Hermann
Re: Integrate log4j in standalone-RCP-Application [message #463662 is a reply to message #463620] Wed, 14 February 2007 03:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

That might be a wise choice, Hermann! Do you know where it logs when you
have your own stand-alone RCP application?
Hermann Maier wrote:
> Peter Osipov schrieb:
>> There is a good article
>
> Yes thanks!
>
> I've read the article, but it was too complicated for my level of
> knowledge. So I kicked away this log4j-thing and now I log with ILog. ;)
>
> Greetings, Hermann
Re: Integrate log4j in standalone-RCP-Application [message #463665 is a reply to message #463662] Wed, 14 February 2007 04:15 Go to previous messageGo to next message
Eclipse UserFriend
Peter Osipov schrieb:
> That might be a wise choice, Hermann! Do you know where it logs when you
> have your own stand-alone RCP application?

it always logs in %MyRCP-APP%/workspace/.metadata/.log

Tom
Re: Integrate log4j in standalone-RCP-Application [message #463666 is a reply to message #463665] Wed, 14 February 2007 04:32 Go to previous message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Tom Schindl wrote:
<blockquote cite="midequjut$km9$1@utils.eclipse.org" type="cite">
<pre wrap="">Peter Osipov schrieb:
</pre>
<blockquote type="cite">
<pre wrap="">That might be a wise choice, Hermann! Do you know where it logs when you
have your own stand-alone RCP application?
</pre>
</blockquote>
<pre wrap=""><!---->
it always logs in %MyRCP-APP%/workspace/.metadata/.log

Tom
</pre>
</blockquote>
Okay, thanks Tom!<br>
</body>
</html>
Previous Topic:Text editor
Next Topic:to be or not to be? is disposing correct?
Goto Forum:
  


Current Time: Mon Mar 17 05:17:46 EDT 2025

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

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

Back to the top