Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogDelimiter = "!-#_^*|\n"
Functions ¶
This section is empty.
Types ¶
type LogEntry ¶
type LogEntry struct {
Source string `json:"source"`
WorkspaceId string `json:"workspaceId"`
ProjectName string `json:"projectName"`
Msg string `json:"msg"`
Level string `json:"level"`
Time string `json:"time"`
}
type LogSource ¶
type LogSource string
const (
LogSourceServer LogSource = "server"
LogSourceProvider LogSource = "provider"
LogSourceBuilder LogSource = "builder"
)
type LoggerFactory ¶
type LoggerFactory interface {
CreateWorkspaceLogger(workspaceId string, source LogSource) Logger
CreateProjectLogger(workspaceId, projectName string, source LogSource) Logger
CreateBuildLogger(projectName, buildId string, source LogSource) Logger
CreateWorkspaceLogReader(workspaceId string) (io.Reader, error)
CreateProjectLogReader(workspaceId, projectName string) (io.Reader, error)
CreateBuildLogReader(projectName, buildId string) (io.Reader, error)
}
func NewLoggerFactory ¶
func NewLoggerFactory(logsDir string) LoggerFactory
Click to show internal directories.
Click to hide internal directories.