Title: How to extend Logger Class
Hi
I am using Logger class in my project..BUt All the functions are of type static type and we cant override the static functions in subclasss..so how can i extend Logger class.Is there anyway..Please suggest me
Thanx in advance
Nidhi Garg
Software Developm
This is pretty much what I did. I originally tried just to extend
LoggingEvent and extend the copy behavior. As soon as you are going to
plug in a strategy, though, why not strategize the entire container (my
solution) as opposed to just the copy method? This seems more flexible
in case this area b
I'll explain this. There is not an MDC.getCopy...here's the comparison
again:
AsyncAppender calls loggingEvent.getMDCCopy()
Old behavior:
- (in loggingEvent.getMDCCopy) check if mdcCopyLookupRequired
- if required, Hashtable ht = (Hashtable) MDC.getContext();
- mdcCopy = (Hashtable) ht.clone();