I have used this method "Format" to create a structure in which I want to print my class. LogMessage is a class where the data received from Logevent is as