Disable will disable the given logKey in keyMask.
(logKey LogKey)
| 114 | |
| 115 | // Disable will disable the given logKey in keyMask. |
| 116 | func (keyMask *LogKeyMask) Disable(logKey LogKey) { |
| 117 | val := atomic.LoadUint64((*uint64)(keyMask)) |
| 118 | atomic.StoreUint64((*uint64)(keyMask), val & ^logKey.KeyMaskValue()) |
| 119 | } |
| 120 | |
| 121 | // Set will override the keyMask with the given logKeyMask. |
| 122 | func (keyMask *LogKeyMask) Set(logKeyMask *LogKeyMask) { |