[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: 'Rolling' Single Log File
From:       "Mikhail T." <mi+thun () aldan ! algebra ! com>
Date:       2011-04-04 15:49:54
Message-ID: 4D99E8A2.7040304 () aldan ! algebra ! com
[Download RAW message or body]

On 04.04.2011 05:04, joseheitor wrote:
> Is it possible to log to a single log file with a size limit, which when the
> size limit is reached, the oldest entries get automatically removed as it
> adds new log events?
No filesystem allows such removal of beginning of a file, so the answer 
is a no.

If you were logging to a database's table, you could do something like 
this, but plain file -- no.

    -mi


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic