Check if a log rotation is neccessary at this time.
Parameters: data - the serialized version of the message about to be written to the log system Parameters: file - the File that we are writing to boolean return true if log rotation is neccessary, else false