File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Modifying Log file(log4j). Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Modifying Log file(log4j)." Watch "Modifying Log file(log4j)." New topic

Modifying Log file(log4j).

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi All,

Can we modify the log file when, application is up.

I tried to deleted the content in log file, i am able to do that, but after that logs are not populated into that.

is there any way to set lock to log file in log4j.

Please help me.

Thanks In Advance,

Bennet Xavier X
David Newton

Joined: Sep 29, 2008
Posts: 12617

Why would you want to? You should let Log4J handle the log files.
I agree. Here's the link:
subject: Modifying Log file(log4j).
It's not a secret anymore!