func (p *Page) ReadAllLogs(logType string) ([]Log, error) {
	if _, err := p.ReadNewLogs(logType); err != nil {
		return nil, err
	}

	return append([]Log(nil), p.logs[logType]...), nil
}
func (p *Page) ReadAllLogs(logType string) ([]Log, error) {
	if _, err := p.ReadNewLogs(logType); err != nil {
		return nil, err
	}

	return append([]Log(nil), p.logs[logType]...), nil
}
func ( p * Page ) ReadAllLogs ( logType string ) ( [ ] Log , error ) { if _ , err := p . ReadNewLogs ( logType ) ; err != nil { return nil , err } return append ( [ ] Log ( nil ) , p . logs [ logType ] ... ) , nil }
// ReadAllLogs returns all log messages of the provided log type. For example,
// page.ReadAllLogs("browser") returns browser console logs, such as JavaScript logs
// and errors. All logs since the session was created are returned.
// Valid log types may be obtained using the LogTypes method.
ReadAllLogs returns all log messages of the provided log type . For example page . ReadAllLogs ( browser ) returns browser console logs such as JavaScript logs and errors . All logs since the session was created are returned . Valid log types may be obtained using the LogTypes method .