The current log implementation returns the max limit of log envelopes from the start of the log. However if a log exceeds this maximum the rest of the log is trimmed off. In this case we retrieve the logs from the tail of the log to the maximum limit of log envelopes.
The current log implementation returns the max limit of log envelopes from the start of the log. However if a log exceeds this maximum the rest of the log is trimmed off. In this case we retrieve the logs from the tail of the log to the maximum limit of log envelopes.
Also added missing tests for this class.