Added logging handler to rotate logs based on size.