Beispiel #1
0
        private static void EmitSubstituteLoggerWarning()
        {
            var loggerNameList = _tempFactory.GetLoggerNameList();

            if (loggerNameList.Length == 0)
            {
                return;
            }

            var msg = "The following loggers will not work because the were created during the default configuration phase of the underlying logging system: "
                      + string.Join(", ", loggerNameList);

            EventLogHelper.WriteEntry(msg, null);
        }