It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Modifying Log file(log4j).
Similar Threads
Not able to save logs into .log file
setting log4j
Log4j rolling policy must be declared?
log files