aspose file tools*
The moose likes Tomcat and the fly likes limit property not working properly in  logging.properties file in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "limit property not working properly in  logging.properties file in tomcat" Watch "limit property not working properly in  logging.properties file in tomcat" New topic
Author

limit property not working properly in logging.properties file in tomcat

vikas byn
Ranch Hand

Joined: Mar 18, 2011
Posts: 78
.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.
1catalina.org.apache.juli.FileHandler.limit = 20000000
1catalina.org.apache.juli.FileHandler.count = 5

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

---------------------------------------------------------------------------

I set these property in logging.properties file to rotate calaline.out file after 20 MB. but its not working .
How can i achieve this.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Try it on a smaller size and see if the limit really isn't working or not.

One problem with numbers like "20MB" or "20000000" is that it can actually mean several different values, as disk drive manufacturers have been known to exploit.


Customer surveys are for companies who didn't pay proper attention to begin with.
vikas byn
Ranch Hand

Joined: Mar 18, 2011
Posts: 78
Tim Holloway wrote:Try it on a smaller size and see if the limit really isn't working or not.

One problem with numbers like "20MB" or "20000000" is that it can actually mean several different values, as disk drive manufacturers have been known to exploit.


I search solution for this problem, most of forums suggest to make a cron entry for that.
but in my case, catalina.out fills logs pretty fast. so i want to rotate catalina.out against its size limit.

thanks your suggestion.
vikas byn
Ranch Hand

Joined: Mar 18, 2011
Posts: 78
I tried several combination of limit but its not working file. my logs does not rotate.

1catalina.org.apache.juli.FileHandler.limit = 20000000

1catalina.org.apache.juli.FileHandler.limit = 20

1catalina.org.apache.juli.FileHandler.limit = 2

1catalina.org.apache.juli.FileHandler.limit = 200
vikas byn
Ranch Hand

Joined: Mar 18, 2011
Posts: 78
please update..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: limit property not working properly in logging.properties file in tomcat
 
Similar Threads
1catalina.org.apache.juli.FileHandler.limit = 20000000 not working properly
java logging : java.util.logging.config.file - accessing logging.properties in classpath
How do I customize JDK logging?
Properties File Error java.util.Resource Bundle. throw Missing Resource Exception
How to see log entries in Google App engine