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

JDK Logging API :- File rotation and .lck file issue

vaibhav barshi

Joined: Jan 09, 2009
Posts: 2
Hi ,

I am using Java Logging API (java.util.logging.Logger) to log message into files.

Development environment is as below:-
Java Runtime :- Java 1.6
Application Server :- Websphere Application Server

Logging file configuration is below.All messages are getting succesfully. file configuration

I am expecting below behavior for above configuration:-
1 Two files should be created as log0.log and log1.log
2 Logging will done in log0.log file upto its limit i.e 1 MB reached.
3 As max limit of log0.log reached , data from log0 will be transferred to log1.log and log0.log will be emptied.
Further all logs will be done again in log0.log

But I found behavior in actual working
1 Logging data gets rotated from log0.log to log1.log before log0.log file reaches its max limit as 1MB (Its starts at few KB only)
2 No of files generated is more than 2
3 ".lck" files are getting generated.

Please help out to sort out above issues.

Thanks ,

I agree. Here's the link:
subject: JDK Logging API :- File rotation and .lck file issue
It's not a secret anymore!