// Note: We can't store the node anywhere because it is subject // to change if it gets invalidated, so we can only use the // node for the life of this method internal void ToggleLogging(IEventLoggingNode node, bool start) { ObjectEvent oe = new ObjectEvent(node.LogEventObject, node.LogEventInfo); ToggleLogging(oe, node.LogObjectName, start); }