start of message logging