Hi,

I have found previous threads in this mailing list about the limitation of not being able to remove loggers from the hierarchy.

But I have a web application that executes 'jobs' for different users (executed in background threads). I'd like to implement a log for each job. Each job (and thus it's logger) is transient and only lasts for a short period of time (sometimes just seconds, others for several minutes).

Could it make sense to implement my own logger class outside of the logger hierarchy and make it AppenderAttachable? I'd like to use the functionality of the appenders to give me file and socket support.

Or would I just need to implement my own LoggerRepository? I get the impression the design might allow the use of different repository implementations? I'd like to implement one that stores just a flat list of loggers (one per 'job'), and will allow the removal of a logger from the list. In fact, it probably doesn't even need to keep a reference to the logger since the 'job' object will do that.

Does this make any sense? Thanks for any help.

--
Steve.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to