github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/pkg/providers/ukvm/get_instance_logs.go (about) 1 package ukvm 2 3 import "io/ioutil" 4 5 func (p *UkvmProvider) GetInstanceLogs(id string) (string, error) { 6 instanceLogName := getInstanceLogName(id) 7 logdata, err := ioutil.ReadFile(instanceLogName) 8 if err != nil { 9 return "", err 10 } 11 12 return string(logdata), nil 13 }