Пример #1
0
        private void LoadLogger()
        {
            bool isLoaded = NLogHelper.LoadLoggerConfigsFromFile("Logging", "nlog.config");

            if (!isLoaded)
            {
                NLogHelper.SetLoggerConfigurationManually();
                logger.Debug("Error of loading configs from file - Logger set by manual configs");
            }
            else
            {
                logger.Debug("Logger configs loading success");
            }
        }