A method for efficient logging in a control system is provided. A temporary history record corresponding to a message transaction placed onto a message queue data structure is generated. A total processing time for the received message transaction is determined. The total processing time is compared with a previously determined peak processing time value. In response to determining that the total processing time exceeds the previously determined peak processing time value, the temporary history record corresponding to the received message transaction is stored in an event log.