// GetLogs gets logs from shard specified by shardId according cursor.
// The logGroupMaxCount is the max number of logGroup could be returned.
// The nextCursor is the next curosr can be used to read logs at next time.

GetLogs gets logs from shard specified by shardId according cursor.
The logGroupMaxCount is the max number of logGroup could be returned.
The nextCursor is the next curosr can be used to read logs at next time.
// GetLogs gets logs from shard specified by shardId according cursor . // The logGroupMaxCount is the max number of logGroup could be returned . // The nextCursor is the next curosr can be used to read logs at next time .
func (s *LogStore) GetLogs(shardId int, cursor string,
	logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error) {
	out, nextCursor, err := s.GetLogsBytes(shardId, cursor, logGroupMaxCount)
	if err != nil {
		return
	}
	gl, err = LogsBytesDecode(out)
	if err != nil {
		return
	}
	return
}
func ( s * LogStore ) GetLogs ( shardId int , cursor string , logGroupMaxCount int ) ( gl * LogGroupList , nextCursor string , err error ) { out , nextCursor , err := s . GetLogsBytes ( shardId , cursor , logGroupMaxCount ) if err != nil { return } gl , err = LogsBytesDecode ( out ) if err != nil { return } return }
GetLogs gets logs from shard specified by shardId according cursor.
GetLogs gets logs from shard specified by shardId according cursor .