// Log gets the truncated output of a specific log ID.
Log gets the truncated output of a specific log ID.
// Log gets the truncated output of a specific log ID .
func (c *Client) Log(cronID int, logID string) (out *LogOutput, err error) {
	v := url.Values{}
	v = c.defaultValues(v)
	v.Set("id", strconv.Itoa(cronID))
	v.Set("log_id", logID)
	body, err := c.call("log", v)
	if err != nil {
		return nil, err
	}
	err = json.Unmarshal(body, &out)
	if err != nil {
		return nil, err
	}
	return out, nil
}
func ( c * Client ) Log ( cronID int , logID string ) ( out * LogOutput , err error ) { v := url . Values { } v = c . defaultValues ( v ) v . Set ( " " , strconv . Itoa ( cronID ) ) v . Set ( " " , logID ) body , err := c . call ( " " , v ) if err != nil { return nil , err } err = json . Unmarshal ( body , & out ) if err != nil { return nil , err } return out , nil }
Log gets the truncated output of a specific log ID.
Log gets the truncated output of a specific log ID .