public static void write_message_to_log(string key) { NLogLogging.GetFor(key).Log("Test data"); var logFileContent = LogManager.Configuration.FindTargetByName <MemoryTarget>("memory"); Assert.True(logFileContent.Logs.Any(a => a.Contains(key.ToUpper()))); }
public static ILogging GetLogger(Type type) { return(NLogLogging.GetLogService(type)); }