| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/09/2011 09:38:15
|
saoj
Joined: 05/09/2008 13:26:12
Messages: 46
Offline
|
The forum problem was fixed. Answering your question in a few minutes...
Amit wrote:
Hi,
I am evaluating Space4J for my application.
I found one configuration which make my usage not scalable: log size is set to 10k in SimpleLogger, with no public API to modify it.
Creating lots of objects creates a very long list of log files in the file system. Although these object are for short-period and I am planning to write a cleaning utility for "pre-last-snaphot" log files, I would like to have the ability to create bigger log files (even for the sack of disk fragmentation).
I saw a newer 0.9.7 javadocs, with this ability, but the code is not in SVN (am I right?)
Thanks,
Amit.
P.S sorry for sending it as a private message, I couldn't post new topic in the forum, get sql exception of duplicate entries all the time...
|
-Sergio Oliveira Junior |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/09/2011 10:00:32
|
saoj
Joined: 05/09/2008 13:26:12
Messages: 46
Offline
|
Not sure where you saw version 0.9.7. The current version is 0.9.2. This feature was never done before. So I have committed the modification to allow that, and you can download the beta jar here: http://www.space4j.org/beta/space4j.jar
You can pass the maxLogSizeBeforeRotation in the constructor or you can change the default through a static method. See below:
This message was edited 1 time. Last update was at 01/09/2011 10:00:58
|
-Sergio Oliveira Junior |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/09/2011 10:08:53
|
saoj
Joined: 05/09/2008 13:26:12
Messages: 46
Offline
|
It looks like someone forked a space4j project and did some modifications: http://nicolas.delsaux.free.fr/space4j/apidocs/index.html?org/space4j/Space4J.html
It is totally fine to do that, besides the fact that it confuses people about the official space4j version.
|
-Sergio Oliveira Junior |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 05/09/2011 02:22:22
|
amitfrid
Joined: 01/09/2011 08:12:58
Messages: 4
Offline
|
Hi Sergio,
Thank you for the quick fix.
Does the beta jar is stable as the 0.9.2 release?
Thanks,
Amit
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 05/09/2011 03:27:28
|
amitfrid
Joined: 01/09/2011 08:12:58
Messages: 4
Offline
|
Hi,
I can't see the fix in SimpleLogger there.
Thanks,
Amit
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 05/09/2011 11:00:16
|
saoj
Joined: 05/09/2008 13:26:12
Messages: 46
Offline
|
amitfrid wrote:Hi,
I can't see the fix in SimpleLogger there.
Thanks,
Amit
You must me hitting another jar or some kind of cache. The change is here: http://www.space4j.org/beta/space4j.jar. The beta jar is stable. This is the only change so far.
|
-Sergio Oliveira Junior |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 05/09/2011 13:23:14
|
amitfrid
Joined: 01/09/2011 08:12:58
Messages: 4
Offline
|
You are right. It was a caching problem.
Thanks,
Amit
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 06/09/2011 01:54:14
|
amitfrid
Joined: 01/09/2011 08:12:58
Messages: 4
Offline
|
Hi,
Can you make a tag of the change in SVN? some way that I can identify what is the version of the code I am using.
Thanks,
Amit
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 06/09/2011 12:34:30
|
saoj
Joined: 05/09/2008 13:26:12
Messages: 46
Offline
|
amitfrid wrote:Hi,
Can you make a tag of the change in SVN? some way that I can identify what is the version of the code I am using.
Thanks,
Amit
The SVN Revision containing that change is #101
|
-Sergio Oliveira Junior |
|
|
 |
|
|