Hi, can you please suggest me the best method to log the data to a file. For example, in a protocol implementation, when the application is running, we need to log the messages that it receives/transmits. since,after long run the file size get increased so that the performance get affected.



"We are what we repeatedly do.
Excellence then is not an act,
but a habit" - Aristotle