my dog learned polymorphism
The moose likes Other Open Source Projects and the fly likes Create user wise Log file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Create user wise Log file." Watch "Create user wise Log file." New topic

Create user wise Log file.

Pravin Sharma

Joined: Jun 18, 2009
Posts: 11
I am using log4j for logging my application errors.with this a common log file is creating for logger.
But in my company there is requirement like ,logger should create userwise log files.
Is it possible to create userwise log files with Log4j.
If yes please help me out.....
Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
Hi Pravin,

What i somwhow understan, your need is need to create log files based on user logged on.
Am i right?
What is the need behind this? I mean what exactly the need to create log based on userwise?
Is there any change in log file format or name blah blah?

if not, then could you please tell us what do you mean by userwise?


Roll with punchers, there is always tomorrow.
Techie Blog --
David Newton

Joined: Sep 29, 2008
Posts: 12617

I don't really see how, but I could be wrong.

You can use the NCD stuff to add user information to log messages then post-process.
I agree. Here's the link:
subject: Create user wise Log file.
It's not a secret anymore!