Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create user wise Log file.

 
Pravin Sharma
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks,
Tanzy.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic