logs

package
v0.108.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputAuto        = "auto"
	OutputInteractive = "interactive"
	OutputNoEmoji     = "noemoji"
	OutputSimple      = "simple"
	OutputTravis      = "travis"
	OutputGA          = "github-actions"
	OutputTeamCity    = "teamcity"
)

Variables

This section is empty.

Functions

func DefaultFormat added in v0.9.0

func DefaultFormat() string

func Formats added in v0.9.0

func Formats() []string

func GetLogger added in v0.9.0

func GetLogger(format string, verbose bool, logWriter io.Writer, logFile *os.File) (*echelon.Logger, func())

func NewGithubActionsLogsRenderer

func NewGithubActionsLogsRenderer(renderer *renderers.SimpleRenderer) echelon.LogRendered

func NewTeamCityLogsRenderer added in v0.10.0

func NewTeamCityLogsRenderer(renderer *renderers.SimpleRenderer) echelon.LogRendered

func NewTravisCILogsRenderer

func NewTravisCILogsRenderer(renderer *renderers.SimpleRenderer) echelon.LogRendered

Types

type FoldableLogsRenderer

type FoldableLogsRenderer struct {
	renderers.StubRenderer
	// contains filtered or unexported fields
}

Foldable log renderer prints start and end messages when a scope is started and finished respectively.

func (FoldableLogsRenderer) RenderMessage

func (r FoldableLogsRenderer) RenderMessage(entry *echelon.LogEntryMessage)

func (FoldableLogsRenderer) RenderRawMessage added in v0.73.0

func (r FoldableLogsRenderer) RenderRawMessage(message string)

func (FoldableLogsRenderer) RenderScopeFinished

func (r FoldableLogsRenderer) RenderScopeFinished(entry *echelon.LogScopeFinished)

func (FoldableLogsRenderer) RenderScopeStarted

func (r FoldableLogsRenderer) RenderScopeStarted(entry *echelon.LogScopeStarted)

type GithubActionsLogsRenderer added in v0.73.0

type GithubActionsLogsRenderer struct {
	*FoldableLogsRenderer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL