Skip to main content



      Home
Home » Newcomers » Newcomers » Writing to log
Writing to log [message #26592] Tue, 08 February 2005 02:08 Go to next message
Eclipse UserFriend
Originally posted by: shaiju.exorindia.com

Hi all
I am developing an editor in eclipse. I want to write log messages to the
log file . Please give me some idea about this ( or give me some
references ).
Thanks In advance
Shaiju.P
Re: Writing to log [message #26628 is a reply to message #26592] Tue, 08 February 2005 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: viraj.gs-lab.com

The location of the log file can be obtained easily as follows:

File fLogFile;
fLogFile = (Platform.getLogFileLocation()).toFile();

In it, one may write the Log Entries using whatever file handling mechanism
one likes in simple text form.

Each new Entry must be formatted as follows(for the Error Log View to be
able to display):
!ENTRY <pluginID> <severity> <code> <date>
!SUBENTRY <depth> <pluginID> <severity> <code> <date> (Optional)

For more information about how the Log File is handled, you may find the
relevant classes in the source of the Plug-In org.eclipse.pde.runtime.

regards,
Viraj

"Shaiju" <shaiju@exorindia.com> wrote in message
news:cu9oho$uie$1@www.eclipse.org...
> Hi all
> I am developing an editor in eclipse. I want to write log messages to
> the log file . Please give me some idea about this ( or give me some
> references ).
> Thanks In advance
> Shaiju.P
Re: Writing to log [message #26662 is a reply to message #26592] Tue, 08 February 2005 07:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dj_houghton.nospam.ca.ibm.com

Look at org.eclipse.core.runtime.Platform#getLog(Bundle). You can write
to the resulting log with an IStatus object.

Shaiju wrote:
> Hi all
> I am developing an editor in eclipse. I want to write log messages to the
> log file . Please give me some idea about this ( or give me some
> references ).
> Thanks In advance
> Shaiju.P
>
>
Re: Writing to log [message #26703 is a reply to message #26592] Tue, 08 February 2005 09:04 Go to previous message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

http://www.eclipsefaq.org/chris/faq/html/faq121.html

--
Chris Laffra, http://eclipsefaq.org


"Shaiju" <shaiju@exorindia.com> wrote in message
news:cu9oho$uie$1@www.eclipse.org...
> Hi all
> I am developing an editor in eclipse. I want to write log messages to
the
> log file . Please give me some idea about this ( or give me some
> references ).
> Thanks In advance
> Shaiju.P
>
>
Previous Topic:Line Numbers Not Displaying
Next Topic:How to specify multiple arguments??
Goto Forum:
  


Current Time: Thu Jul 17 21:46:07 EDT 2025

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

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

Back to the top