Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-dev