Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

separate logger configuration for each IDs  RSS feed

 
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
 
Rancher
Posts: 1017
6
  • 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: 1017
6
  • 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: 1017
6
 
m sandeep
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ivan Jozsef Balazs wrote:Google log4j appender root logger dynamically

Stack Overflow hit




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
Boost this thread!