Allow conditional compilation of trace messages pertaining to state changes.