Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to disable/replace eclipse logger implementation
How to disable/replace eclipse logger implementation [message #325957] Tue, 04 March 2008 11:21 Go to next message
Roland Tepp is currently offline Roland TeppFriend
Messages: 336
Registered: July 2009
Senior Member
Hello Everybody,

I am trying to run an eclipse based application in an embedded
environment with limited disk space and would like to severely limit
eclipse log file (workspace/.metadata/.log) size.

Currently it seems that the log file is grown until it reaches 1GB size,
which is then renamed, backed up and new log file is created. This
process is repeated until 10 backed up log files are created, thus
increasing the total size of log files to 10GB, which is unacceptable.

We would like to either entirely disable logging or replace default
eclipse logger with our own, that we could control more tightly.

--
Roland Tepp
Re: How to disable/replace eclipse logger implementation [message #325977 is a reply to message #325957] Tue, 04 March 2008 20:40 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
umm, there is something wrong that is causing the logging to the log
file. I would figure out what that is first.

In my RCP app, I have a log handler that reports an error to the user
(and considers it a bug) whenever there is something logged. Therefore
my log file is virtually empty.

Roland Tepp wrote:
> Hello Everybody,
>
> I am trying to run an eclipse based application in an embedded
> environment with limited disk space and would like to severely limit
> eclipse log file (workspace/.metadata/.log) size.
>
> Currently it seems that the log file is grown until it reaches 1GB size,
> which is then renamed, backed up and new log file is created. This
> process is repeated until 10 backed up log files are created, thus
> increasing the total size of log files to 10GB, which is unacceptable.
>
> We would like to either entirely disable logging or replace default
> eclipse logger with our own, that we could control more tightly.
>


Re: How to disable/replace eclipse logger implementation [message #326578 is a reply to message #325977] Tue, 25 March 2008 15:57 Go to previous messageGo to next message
Roland Tepp is currently offline Roland TeppFriend
Messages: 336
Registered: July 2009
Senior Member
Sorry Francis, but this did not answer my question.

I know that the eclipse logging facility is mostly used for logging
errors and warnings and most of these cases are "critical" enough to be
considered bugs in their own right.

But in addition to these items there are also info, debug and trace
level logs, that should also be logged at some point.

Current Eclipse practice of logging debug level logs to stdout is not
satisfying, since this separates conventional log messages from error
messages that could be relevant for debugging problems in the
testing/production environment.

What I need is to have the ability to redirect all logging statements to
a single location, irrespective of it's severity. I also do not want to
manage multiple logging facilities - one for reporting errors and
warnings and one for info/debug/trace level logging...

Also - the need to disable the eclipse log altogether is required in the
embedded environment without any writable disk space available.

Francis Upton kirjutas mulle midagi seesugust:
> umm, there is something wrong that is causing the logging to the log
> file. I would figure out what that is first.
>
> In my RCP app, I have a log handler that reports an error to the user
> (and considers it a bug) whenever there is something logged. Therefore
> my log file is virtually empty.
>
> Roland Tepp wrote:
>> Hello Everybody,
>>
>> I am trying to run an eclipse based application in an embedded
>> environment with limited disk space and would like to severely limit
>> eclipse log file (workspace/.metadata/.log) size.
>>
>> Currently it seems that the log file is grown until it reaches 1GB
>> size, which is then renamed, backed up and new log file is created.
>> This process is repeated until 10 backed up log files are created,
>> thus increasing the total size of log files to 10GB, which is
>> unacceptable.
>>
>> We would like to either entirely disable logging or replace default
>> eclipse logger with our own, that we could control more tightly.
>>

--
Roland Tepp
Re: How to disable/replace eclipse logger implementation [message #326655 is a reply to message #326578] Thu, 27 March 2008 16:04 Go to previous message
Uwe Stieber is currently offline Uwe StieberFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,
have you considered to use java.util.logging? It would be easy to create log
handler which is fowarding Info/Error/Warning messages to the Eclipse error
log additional to capture the log record to where ever you want. From client
perspective, you always use the same interface and you do not need to care
about where the messages will end up. All the logic is centralized to the
log handler.

Regards, Uwe Stieber


"Roland Tepp" <roland@videobet.com> wrote in message
news:fsb7a0$e7f$1@build.eclipse.org...
> Sorry Francis, but this did not answer my question.
>
> I know that the eclipse logging facility is mostly used for logging errors
> and warnings and most of these cases are "critical" enough to be
> considered bugs in their own right.
>
> But in addition to these items there are also info, debug and trace level
> logs, that should also be logged at some point.
>
> Current Eclipse practice of logging debug level logs to stdout is not
> satisfying, since this separates conventional log messages from error
> messages that could be relevant for debugging problems in the
> testing/production environment.
>
> What I need is to have the ability to redirect all logging statements to a
> single location, irrespective of it's severity. I also do not want to
> manage multiple logging facilities - one for reporting errors and warnings
> and one for info/debug/trace level logging...
>
> Also - the need to disable the eclipse log altogether is required in the
> embedded environment without any writable disk space available.
>
> Francis Upton kirjutas mulle midagi seesugust:
>> umm, there is something wrong that is causing the logging to the log
>> file. I would figure out what that is first.
>>
>> In my RCP app, I have a log handler that reports an error to the user
>> (and considers it a bug) whenever there is something logged. Therefore
>> my log file is virtually empty.
>>
>> Roland Tepp wrote:
>>> Hello Everybody,
>>>
>>> I am trying to run an eclipse based application in an embedded
>>> environment with limited disk space and would like to severely limit
>>> eclipse log file (workspace/.metadata/.log) size.
>>>
>>> Currently it seems that the log file is grown until it reaches 1GB size,
>>> which is then renamed, backed up and new log file is created. This
>>> process is repeated until 10 backed up log files are created, thus
>>> increasing the total size of log files to 10GB, which is unacceptable.
>>>
>>> We would like to either entirely disable logging or replace default
>>> eclipse logger with our own, that we could control more tightly.
>>>
>
> --
> Roland Tepp
Previous Topic:Dynamic menu contribution to view toolbar does not work?
Next Topic:property changes on a resource
Goto Forum:
  


Current Time: Fri Dec 27 01:58:51 GMT 2024

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

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

Back to the top