log4net's LogManager.GetLogger() throws NullReferenceException when used in custom TraceListener
===

I am attempting to transition a large application from using the `Trace` class to output notifications through `log4net`.  As such, I wrote a custom `TraceListener` to redirect output into the log4net's messaging (inspired by <a href="http://blog.catenalogic.com/post/2010/06/18/Log4net-TraceListener.aspx">this post</a>).

    public class Log4netTraceListener : TraceListener
    {
        private static readonly ILog logger = LogManager.GetLogger("Log4netTraceListener"); // Line 19

        public Log4netTraceListener() { /* nothing special */ }

        public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message)
        {
            // some switching based on the TraceLevel, but eventually something like:
            logger.Error(message);
        }
    }

The console application solution was three projects:

1. RunShipOrder - the console project that is the entry point for the application
2. ShipOrderAPI - a class library project that contains all of the code relevant to this process
3. CodeLibrary - a class library project that contains code common across many projects.
+ Log4netTraceListener is in this project

Inside of the `RunShipOrder` project, I can call `LogManager.GetLogger("Log4netTraceListener")`, and it works as expected.  However, if I try to call a method on `Trace` it throws an exception.  I have traced it back to the initial call to `LogManager.GetLogger("Log4netTraceListener")` inside of the `Log4netTraceListener` class.

The Exception thrown is a `ConfigurationErrorsException`, with an inner exception of `TypeInitializationException`, with an inner exception of `NullReferenceException`.
    The stack trace on the innermost exception is:

       at log4net.Core.LoggerManager.GetLogger(Assembly repositoryAssembly, String name)
       at log4net.LogManager.GetLogger(Assembly repositoryAssembly, String name)
       at log4net.LogManager.GetLogger(String name)
       at CodeLibrary.Diagnostics.Log4netTraceListener..cctor() in Log4netTraceListener.cs:line 19

Any ideas on what might be throwing this exception from within the log4net codebase?
