core/restream/app/log.go
Ingo Oppermann 0a3117bbd0
Add log_patterns to process config
log_patterns allow to filter the FFmpeg log messages based on regular
expressions. Each entry of log_patterns is interpreted as regular
expression and matched against every non-progress log line emitted from
FFmpeg. All matching lines are returned in the matches array of the
report.
2023-03-27 15:50:25 +02:00

39 lines
501 B
Go

package app
import (
"time"
)
type LogLine struct {
Timestamp time.Time
Data string
}
type LogEntry struct {
CreatedAt time.Time
Prelude []string
Log []LogLine
Matches []string
}
type LogHistoryEntry struct {
LogEntry
ExitedAt time.Time
ExitState string
Progress Progress
}
type Log struct {
LogEntry
History []LogHistoryEntry
}
type LogHistorySearchResult struct {
ProcessID string
Reference string
ExitState string
ExitedAt time.Time
CreatedAt time.Time
}