Detect when Layer Name or Properties are changed

How can you detect when a layer name or property is changed in Rhino from within grasshopper to trigger an action?