private static IEnumerable<string> GetNLogTargetName (NLog.Targets.Target target) { if (!String.IsNullOrEmpty (target.Name)) yield return (target.Name); var name = target.GetType ().Name.Split ('.').Last (); if (target.Name != name) yield return name; name = name.Replace ("Target", ""); if (target.Name != name) yield return name; }