Documentation ¶
Index ¶
- Constants
- func DefaultFormat() string
- func Formats() []string
- func GetLogger(format string, verbose bool, logWriter io.Writer, logFile *os.File) (*echelon.Logger, func())
- func NewGithubActionsLogsRenderer(renderer *renderers.SimpleRenderer) echelon.LogRendered
- func NewTeamCityLogsRenderer(renderer *renderers.SimpleRenderer) echelon.LogRendered
- func NewTravisCILogsRenderer(renderer *renderers.SimpleRenderer) echelon.LogRendered
- type FoldableLogsRenderer
- func (r FoldableLogsRenderer) RenderMessage(entry *echelon.LogEntryMessage)
- func (r FoldableLogsRenderer) RenderRawMessage(message string)
- func (r FoldableLogsRenderer) RenderScopeFinished(entry *echelon.LogScopeFinished)
- func (r FoldableLogsRenderer) RenderScopeStarted(entry *echelon.LogScopeStarted)
- type GithubActionsLogsRenderer
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 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
}
Click to show internal directories.
Click to hide internal directories.