Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / December 2005

Tip: Looking for answers? Try searching our database.

How to clean (totally or not) Eclispe IDE .log file

Thread view: 
astrawally2002@yahoo.fr - 05 Dec 2005 14:56 GMT
Hi,

Does anyone knows how to clean up the .log file into Eclispe IDE
(Version: 3.0.0) localized in ..\eclipse\workspace\.metadata folder.

I used to have many problems during an old project installation and I
would like know to delete all the logs from this file.

It sized more than 1 Go (oups ! ) and contains many exceptions (I think
one or two exceptions repeated thousands and thousands times).

Notepad.exe or texpad.exe cannot open this file to delete log lines
(one by one or by blocks)...the file is too large.

Is there any tool for deleting these logs using parameters (deleting
logs from one date to another)...

Any help would be appreciated.

Thanks

pm
Igor Planinc - 05 Dec 2005 15:04 GMT
> Hi,
>
[quoted text clipped - 18 lines]
>
> pm

echo "This log contains only this line" > eclipse.log

;-)
astrawally2002@yahoo.fr - 05 Dec 2005 15:26 GMT
> > Hi,
> >
[quoted text clipped - 22 lines]
>
> ;-)

Why is it so difficult ?

Thanks  ;-)
Igor Planinc - 05 Dec 2005 15:50 GMT
>>>Hi,
>>>
[quoted text clipped - 24 lines]
>
> Why is it so difficult ?

You don't have to open a file to remove all the content. You can simply create a
new one. Redirecting a stream in that particular way, does that. Sort of. The so
created log will contain the one-liner. ;-)

More Java-ish alternative would be something like:

new RandomAccessFile("eclipse.log", "rw").setLength(0);
IchBin - 05 Dec 2005 17:00 GMT
>>> Hi,
>>>
[quoted text clipped - 26 lines]
>
> Thanks  ;-)

It is not that difficult. That would be a nice plugin but I do not think
there is such a utility. It just happens that you let the size of the
log grow just a bit to large.  You could google around for an editor
that does not load the entire file into memory. Look at UltraEdit. Not
sure if that could do it. You may have to bite the bullet and erase the
log file this time.

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

David Kerber - 05 Dec 2005 19:32 GMT
...

> It is not that difficult. That would be a nice plugin but I do not think
> there is such a utility. It just happens that you let the size of the
> log grow just a bit to large.  You could google around for an editor
> that does not load the entire file into memory. Look at UltraEdit. Not
> sure if that could do it. You may have to bite the bullet and erase the
> log file this time.

Yes, UltraEdit can handle files > 1GB on Windows NT or greater.  I know
from first-hand experience.  It's not the instant response I'm used to
from UltraEdit, but it works.  Though if you had Win 9x, I wouldn't be
as confident...

Signature

Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.