Writing to the Eclipse Log [message #331041] |
Thu, 21 August 2008 20:39  |
Eclipse User |
|
|
|
Hello,
How can I write messages to the Eclipse workspace log
(~/workspace/.metadata/.log)? I tried searching around, but I cannot
find any information about it.
Cheers,
Karol Krizka
|
|
|
Re: Writing to the Eclipse Log [message #331051 is a reply to message #331041] |
Fri, 22 August 2008 04:22   |
Eclipse User |
|
|
|
activator.getLog().log();
- Prakash
www.eclipse-tips.com
Karol Krizka wrote:
> Hello,
>
> How can I write messages to the Eclipse workspace log
> (~/workspace/.metadata/.log)? I tried searching around, but I cannot
> find any information about it.
>
> Cheers,
> Karol Krizka
|
|
|
Re: Writing to the Eclipse Log [message #331069 is a reply to message #331051] |
Fri, 22 August 2008 20:12   |
Eclipse User |
|
|
|
Prakash G.R. wrote:
> activator.getLog().log();
>
My plugin activator does not have function called getLog(). It is
currently extending AbstractUIPlugin, so could that be the problem?
> - Prakash
>
> www.eclipse-tips.com
>
>
> Karol Krizka wrote:
>> Hello,
>>
>> How can I write messages to the Eclipse workspace log
>> (~/workspace/.metadata/.log)? I tried searching around, but I cannot
>> find any information about it.
>>
>> Cheers,
>> Karol Krizka
|
|
|
Re: Writing to the Eclipse Log [message #331073 is a reply to message #331069] |
Sat, 23 August 2008 06:28  |
Eclipse User |
|
|
|
getLog() is in Plugin, which is the super class of AbstractUIPlugin.
Its not a static method. I guess you tried Activator.getLog(), try:
Activator activator = Activator.getDefalt();
activator.getLog().log();
- Prakash
www.eclipse-tips.com
Karol Krizka wrote:
> Prakash G.R. wrote:
>> activator.getLog().log();
>>
> My plugin activator does not have function called getLog(). It is
> currently extending AbstractUIPlugin, so could that be the problem?
>
>> - Prakash
>>
>> www.eclipse-tips.com
>>
>>
>> Karol Krizka wrote:
>>> Hello,
>>>
>>> How can I write messages to the Eclipse workspace log
>>> (~/workspace/.metadata/.log)? I tried searching around, but I cannot
>>> find any information about it.
>>>
>>> Cheers,
>>> Karol Krizka
|
|
|
Powered by
FUDForum. Page generated in 0.04613 seconds