static public LogFilter? GetAttributeLogFilter( this XElement @this, string name, bool fallbackToUndefined ) { XAttribute a = @this.Attribute( name ); return a != null ? LogFilter.Parse( a.Value ) : (fallbackToUndefined ? LogFilter.Undefined : (LogFilter?)null); }