internal bool IsContextEnabled(ILogContext context) { var contextType = context.GetType(); foreach (var node in Nodes) { if ((Type)node.Context == contextType) { return(node.Enabled); } } return(EnabledByDefault); }