示例#1
0
        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())));
        }
示例#2
0
 public static ILogging GetLogger(Type type)
 {
     return(NLogLogging.GetLogService(type));
 }