SetLoggerFactory complexity

Feb 5, 2015 at 11:48 AM
Just a quickie, no rush on a response. Why is SetLoggerFactory so complicated? I've never seen a pattern like that and wondered why its being done.

I guess I wouldn't care so much but it's eaten 45 minutes of my day to understand what its doing (I was looking via Reflector).

I'm just looking at other areas of the codebase and I see a lot of convoluted logic, bad naming and what I call API "UX" issues. Since this is out in the open, I think its important to keep in mind the code as documentation and programmers of all abilities.