Beispiel #1
0
        static MarkerFactory()
        {
            SlfServiceProvider provider = LoggerFactory.GetProvider();

            if (provider == null)
            {
                Factory = new BasicMarkerFactory();
            }
            else
            {
                provider.Initialize();
                Factory = provider.MarkerFactory;
            }
        }
Beispiel #2
0
 private static MDCAdapter GetMDCAdapterFromBinder()
 {
     return(LoggerFactory.GetProvider().MdcAdapter);
 }