aspose file tools*
The moose likes Java in General and the fly likes separate logger configuration for each IDs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "separate logger configuration for each IDs" Watch "separate logger configuration for each IDs" New topic
Author

separate logger configuration for each IDs

m sandeep
Greenhorn

Joined: Jan 24, 2011
Posts: 17
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

Joined: May 22, 2012
Posts: 867
    
    5
Do you use a logger framework?
m sandeep
Greenhorn

Joined: Jan 24, 2011
Posts: 17
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

Joined: May 22, 2012
Posts: 867
    
    5
Googling on "log4j appender root logger dynamically" revealed this:

m sandeep
Greenhorn

Joined: Jan 24, 2011
Posts: 17
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

Joined: May 22, 2012
Posts: 867
    
    5
Google log4j appender root logger dynamically

Stack Overflow hit
m sandeep
Greenhorn

Joined: Jan 24, 2011
Posts: 17



I wrote this and tried but it is not working



Please let me know if you have some example
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: separate logger configuration for each IDs