private void RefreshMonitorLogs(IEnumerable <MonitorLogEntity> logs) { foreach (var log in logs) { MonitorLogs.Insert(0, new MonitorLogModel(log)); } }
public void Should_contain_Console_targets_if_printing_to_console() { var settings = new Settings { LogLevel = LogLevel.Info, LogPath = "TestLogPath" }; MonitorLogs.Configure(settings, true); var logConfiguration = NLog.LogManager.Configuration; Assert.IsNotEmpty(logConfiguration.LoggingRules.Where(rule => rule.Targets.Any(target => target is ColoredConsoleTarget))); }