private NLog.Targets.MemoryTarget GetLogger() { return (NLog.Targets.MemoryTarget)NLog.LogManager.Configuration.FindTargetByName("Memory"); }