• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

separate logger configuration for each IDs

 
m sandeep
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


I am looking forward to actually configure a logger that should be created for different IDs.

My application is very huge and there are nearly 20 users accessing the application at a time so when they get any exceptions it is becoming very difficult to check in the log what actually went wrong.

So i want to create a logger in such a way that its generates the log on the ids (unique) that i provide.( i.e i mean separate logger for each ID)

Could anyone help me how this can be achieved .

Thanks
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you use a logger framework?
 
m sandeep
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Jozsef Balazs wrote:Do you use a logger framework?


I am using log4j as of now but i am able to get how to change the logs appender according to the IDs.
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Googling on "log4j appender root logger dynamically" revealed this:

 
m sandeep
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Jozsef Balazs wrote:Googling on "log4j appender root logger dynamically" revealed this:


not clear enough could you please let me know the proper source ..
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
 
m sandeep
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



I wrote this and tried but it is not working



Please let me know if you have some example
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic