예제 #1
0
        internal static LoggerBuilder PickSourceForward(LoggerBuilderCollection builders, string name)
        {
            if (name == "root")
            {
                return(null);
            }

            // UNDONE Explicit includes are required
            // LoggerBuilder builder = builders.FirstOrDefault(t => t.Sources != null && t.Sources.Includes != null && t.Sources.IsMatch(name));
            return(null);
        }
예제 #2
0
        internal string ComputeParent(LoggerBuilderCollection builders)
        {
            // Choose the parent - either an explicit name or implicitly depending upon the events being forwarded
            string parentName = (Parent ?? string.Empty).Trim();

            if (parentName.Length == 0)
            {
                if (builders != null && computedParent == null)
                {
                    LoggerBuilder builder = PickSourceForward(builders);
                    computedParent = builder == null ? string.Empty : builder.Name;
                }

                return(computedParent);
            }
            return(parentName);
        }
예제 #3
0
 private LoggerBuilder PickSourceForward(LoggerBuilderCollection builders)
 {
     return(PickSourceForward(builders, this.Name));
 }