Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

file lock and logging  RSS feed

 
ertan eyimaya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have two java applications; in the first application I use java.util.logging.Logger class to log messages. And I have to read these log files from second application while the first one is still running.

Since the file lock is exclusive, I can't read log files from my second application. I found some clues from FileLock class but it is in the nio package and it is platform dependent.

Maybe using a database to log messages is the solution; but file based solution will be better.

How can I resolve this problem?


Thanks...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!