Add basic log support

This commit is contained in:
Michael Crosby 2015-11-13 13:22:42 -08:00
parent f9ad7970d2
commit 0136213e78
392 changed files with 56 additions and 47867 deletions

View file

@ -27,11 +27,17 @@ func NewEvent(t EventType) *Event {
}
}
type Stdio struct {
Stderr string `json:"stderr,omitempty"`
Stdout string `json:"stdout,omitempty"`
}
type Event struct {
Type EventType `json:"type"`
Timestamp time.Time `json:"timestamp"`
ID string `json:"id,omitempty"`
BundlePath string `json:"bundlePath,omitempty"`
Stdio *Stdio `json:"stdio,omitempty"`
Pid int `json:"pid,omitempty"`
Status int `json:"status,omitempty"`
Signal os.Signal `json:"signal,omitempty"`