Add basic log support
This commit is contained in:
parent
f9ad7970d2
commit
0136213e78
392 changed files with 56 additions and 47867 deletions
6
event.go
6
event.go
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue