File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Java Logging API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Logging API" Watch "Java Logging API" New topic

Java Logging API

Mike Cutter
Ranch Hand

Joined: Jun 09, 2002
Posts: 49
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.


Joe Ess

Joined: Oct 29, 2001
Posts: 9188

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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Java Logging API
It's not a secret anymore!