Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Logging API

 
Mike Cutter
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My company purchased this product called the Versata Logic Server. Its manual says that its logging is based on Sun's java.util.logging package.

The logging is set to the default of the WARNING level, 1 log file, and about 1 MB in size.

I want to have the log file reach 3 MB in size and keep the 10 previous log files. When the log file reaches 3 MB in size, it copies it and starts a new log file.

I am not too familiar with the Java Logging API. Any suggestions would help me.

Thanks,

Mike
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this Java Logging Overview. The java.util.logging.FileHandler class has all the settings you require, if that's what your server is using.
Logging configurations can take many forms, though most applications use a property file. Consult your product's documentation to see how it is configured.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic