Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file lock and logging

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

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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic