I want to log some summary lines on domain shutdown, however log4net hooks the AppDomain.CurrentDomain.ProcessExit first and will shutdown the logging before I have a chance to output my message. (And the message is never logged)
So my question is: 1. Is there a way to hook ProcessExit before log4net without playing too much with initialization order? (Certainly without changing the Program class of my application) 2. Does log4net provides any hook which it invokes just before shutdown?