Documentation
¶
Index ¶
- type LogBlock
- type LogBlockOptions
- type LogProcess
- func (l *LogProcess) Disable() types.LogProcessInterface
- func (l *LogProcess) Do(f func())
- func (l *LogProcess) DoError(f func() error) error
- func (l *LogProcess) Enable() types.LogProcessInterface
- func (l *LogProcess) End()
- func (l *LogProcess) Fail()
- func (l *LogProcess) Options(f func(options types.LogProcessOptionsInterface)) types.LogProcessInterface
- func (l *LogProcess) Start()
- func (l *LogProcess) StepEnd(format string, a ...interface{})
- type LogProcessInline
- func (l *LogProcessInline) Disable() types.LogProcessInlineInterface
- func (l *LogProcessInline) Do(f func())
- func (l *LogProcessInline) DoError(f func() error) error
- func (l *LogProcessInline) Enable() types.LogProcessInlineInterface
- func (l *LogProcessInline) Options(f func(options types.LogProcessInlineOptionsInterface)) types.LogProcessInlineInterface
- type LogProcessInlineOptions
- type LogProcessOptions
- func (opts *LogProcessOptions) DisableIfLevelNotAccepted()
- func (opts *LogProcessOptions) InfoSectionFunc(f func(err error))
- func (opts *LogProcessOptions) Mute()
- func (opts *LogProcessOptions) Style(style *stylePkg.Style)
- func (opts *LogProcessOptions) SuccessInfoSectionFunc(f func())
- func (opts *LogProcessOptions) WithIndent()
- func (opts *LogProcessOptions) WithoutElapsedTime()
- func (opts *LogProcessOptions) WithoutLogOptionalLn()
- type State
- func (s *State) ContentWidth() int
- func (s *State) DecreaseIndent()
- func (s *State) DisableGitlabCollapsibleSections()
- func (s *State) DisableLineWrapping()
- func (s *State) DisableLogProcessBorder()
- func (s *State) DisableOptionalLn()
- func (s *State) DisablePrefixWithTime()
- func (s *State) DisablePrettyLog()
- func (s *State) DisableProxyStreamDataFormatting()
- func (s *State) DisableStyle()
- func (s *State) DoErrorWithIndent(f func() error) error
- func (s *State) DoErrorWithProxyStreamDataFormatting(f func() error) error
- func (s *State) DoErrorWithTag(value string, style *stylePkg.Style, f func() error) error
- func (s *State) DoErrorWithoutIndent(f func() error) error
- func (s *State) DoErrorWithoutProxyStreamDataFormatting(f func() error) error
- func (s *State) DoWithIndent(f func())
- func (s *State) DoWithProxyStreamDataFormatting(f func())
- func (s *State) DoWithTag(value string, style *stylePkg.Style, f func())
- func (s *State) DoWithoutIndent(f func())
- func (s *State) DoWithoutProxyStreamDataFormatting(f func())
- func (s *State) EnableGitlabCollapsibleSections()
- func (s *State) EnableLineWrapping()
- func (s *State) EnableLogProcessBorder()
- func (s *State) EnableOptionalLn()
- func (s *State) EnablePrefixWithTime()
- func (s *State) EnableProxyStreamDataFormatting()
- func (s *State) EnableStyle()
- func (s *State) IncreaseIndent()
- func (s *State) IsGitlabCollapsibleSections() bool
- func (s *State) IsLineWrappingEnabled() bool
- func (s *State) IsLogProcessBorderEnabled() bool
- func (s *State) IsMuted() bool
- func (s *State) IsPrefixWithTimeEnabled() bool
- func (s *State) IsProxyStreamDataFormattingEnabled() bool
- func (s *State) IsStyleEnabled() bool
- func (s *State) LogProcessDownAndRightBorderSign() string
- func (s *State) LogProcessUpAndRightBorderSign() string
- func (s *State) LogProcessVerticalAndRightBorderSign() string
- func (s *State) LogProcessVerticalBorderSign() string
- func (s *State) Mute()
- func (s *State) ProcessesBorderBetweenIndentWidth() int
- func (s *State) ProcessesBorderIndentWidth() int
- func (s *State) ResetIndent()
- func (s *State) ResetPrefix()
- func (s *State) ResetPrefixTime()
- func (s *State) ResetTag()
- func (s *State) ServiceWidth() int
- func (s *State) SetPrefix(value string)
- func (s *State) SetPrefixStyle(style *stylePkg.Style)
- func (s *State) SetTag(value string)
- func (s *State) SetTagStyle(style *stylePkg.Style)
- func (s *State) SetTagWithStyle(value string, style *stylePkg.Style)
- func (s *State) SetWidth(value int)
- func (s *State) SharedState() *State
- func (s *State) SubState() *State
- func (s *State) Unmute()
- func (s *State) Width() int
- type Stream
- func (s *Stream) FitText(text string, options types.FitTextOptions) string
- func (s *Stream) FormatAndLogF(style *stylePkg.Style, format string, a ...interface{})
- func (s *Stream) NewLogBlock(manager types.ManagerInterface, format string, a ...interface{}) *LogBlock
- func (s *Stream) NewLogProcess(manager types.ManagerInterface, format string, a ...interface{}) *LogProcess
- func (s *Stream) NewLogProcessInline(manager types.ManagerInterface, format string, a ...interface{}) *LogProcessInline
- func (s *Stream) ProxyStream() io.Writer
- func (s *Stream) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogBlock ¶
type LogBlock struct {
// contains filtered or unexported fields
}
func (*LogBlock) Disable ¶
func (l *LogBlock) Disable() types.LogBlockInterface
func (*LogBlock) Enable ¶
func (l *LogBlock) Enable() types.LogBlockInterface
func (*LogBlock) Options ¶
func (l *LogBlock) Options(f func(options types.LogBlockOptionsInterface)) types.LogBlockInterface
type LogBlockOptions ¶
type LogBlockOptions struct {
// contains filtered or unexported fields
}
func (*LogBlockOptions) DisableIfLevelNotAccepted ¶
func (opts *LogBlockOptions) DisableIfLevelNotAccepted()
func (*LogBlockOptions) Mute ¶ added in v0.4.3
func (opts *LogBlockOptions) Mute()
func (*LogBlockOptions) Style ¶
func (opts *LogBlockOptions) Style(s *stylePkg.Style)
func (*LogBlockOptions) WithIndent ¶
func (opts *LogBlockOptions) WithIndent()
func (*LogBlockOptions) WithoutLogOptionalLn ¶
func (opts *LogBlockOptions) WithoutLogOptionalLn()
type LogProcess ¶
type LogProcess struct {
// contains filtered or unexported fields
}
func (*LogProcess) Disable ¶
func (l *LogProcess) Disable() types.LogProcessInterface
func (*LogProcess) Do ¶
func (l *LogProcess) Do(f func())
func (*LogProcess) DoError ¶
func (l *LogProcess) DoError(f func() error) error
func (*LogProcess) Enable ¶
func (l *LogProcess) Enable() types.LogProcessInterface
func (*LogProcess) End ¶
func (l *LogProcess) End()
func (*LogProcess) Fail ¶
func (l *LogProcess) Fail()
func (*LogProcess) Options ¶
func (l *LogProcess) Options(f func(options types.LogProcessOptionsInterface)) types.LogProcessInterface
func (*LogProcess) Start ¶
func (l *LogProcess) Start()
func (*LogProcess) StepEnd ¶
func (l *LogProcess) StepEnd(format string, a ...interface{})
type LogProcessInline ¶
type LogProcessInline struct {
// contains filtered or unexported fields
}
func (*LogProcessInline) Disable ¶
func (l *LogProcessInline) Disable() types.LogProcessInlineInterface
func (*LogProcessInline) Do ¶
func (l *LogProcessInline) Do(f func())
func (*LogProcessInline) DoError ¶
func (l *LogProcessInline) DoError(f func() error) error
func (*LogProcessInline) Enable ¶
func (l *LogProcessInline) Enable() types.LogProcessInlineInterface
func (*LogProcessInline) Options ¶
func (l *LogProcessInline) Options(f func(options types.LogProcessInlineOptionsInterface)) types.LogProcessInlineInterface
type LogProcessInlineOptions ¶
type LogProcessInlineOptions struct {
// contains filtered or unexported fields
}
func (*LogProcessInlineOptions) DisableIfLevelNotAccepted ¶
func (opts *LogProcessInlineOptions) DisableIfLevelNotAccepted()
func (*LogProcessInlineOptions) Mute ¶ added in v0.4.3
func (opts *LogProcessInlineOptions) Mute()
func (*LogProcessInlineOptions) Style ¶
func (opts *LogProcessInlineOptions) Style(s *stylePkg.Style)
type LogProcessOptions ¶
type LogProcessOptions struct {
// contains filtered or unexported fields
}
func (*LogProcessOptions) DisableIfLevelNotAccepted ¶
func (opts *LogProcessOptions) DisableIfLevelNotAccepted()
func (*LogProcessOptions) InfoSectionFunc ¶
func (opts *LogProcessOptions) InfoSectionFunc(f func(err error))
func (*LogProcessOptions) Mute ¶ added in v0.4.3
func (opts *LogProcessOptions) Mute()
func (*LogProcessOptions) Style ¶
func (opts *LogProcessOptions) Style(style *stylePkg.Style)
func (*LogProcessOptions) SuccessInfoSectionFunc ¶
func (opts *LogProcessOptions) SuccessInfoSectionFunc(f func())
func (*LogProcessOptions) WithIndent ¶
func (opts *LogProcessOptions) WithIndent()
func (*LogProcessOptions) WithoutElapsedTime ¶
func (opts *LogProcessOptions) WithoutElapsedTime()
func (*LogProcessOptions) WithoutLogOptionalLn ¶
func (opts *LogProcessOptions) WithoutLogOptionalLn()
type State ¶
func NewStreamState ¶
func NewStreamState() *State
func (*State) ContentWidth ¶
func (*State) DecreaseIndent ¶
func (s *State) DecreaseIndent()
func (*State) DisableGitlabCollapsibleSections ¶ added in v0.4.1
func (s *State) DisableGitlabCollapsibleSections()
func (*State) DisableLineWrapping ¶
func (s *State) DisableLineWrapping()
func (*State) DisableLogProcessBorder ¶
func (s *State) DisableLogProcessBorder()
func (*State) DisableOptionalLn ¶
func (s *State) DisableOptionalLn()
func (*State) DisablePrefixWithTime ¶
func (s *State) DisablePrefixWithTime()
func (*State) DisablePrettyLog ¶
func (s *State) DisablePrettyLog()
func (*State) DisableProxyStreamDataFormatting ¶
func (s *State) DisableProxyStreamDataFormatting()
func (*State) DisableStyle ¶
func (s *State) DisableStyle()
func (*State) DoErrorWithIndent ¶
func (*State) DoErrorWithProxyStreamDataFormatting ¶
func (*State) DoErrorWithTag ¶
func (*State) DoErrorWithoutIndent ¶
func (*State) DoErrorWithoutProxyStreamDataFormatting ¶
func (*State) DoWithIndent ¶
func (s *State) DoWithIndent(f func())
func (*State) DoWithProxyStreamDataFormatting ¶
func (s *State) DoWithProxyStreamDataFormatting(f func())
func (*State) DoWithoutIndent ¶
func (s *State) DoWithoutIndent(f func())
func (*State) DoWithoutProxyStreamDataFormatting ¶
func (s *State) DoWithoutProxyStreamDataFormatting(f func())
func (*State) EnableGitlabCollapsibleSections ¶ added in v0.4.1
func (s *State) EnableGitlabCollapsibleSections()
func (*State) EnableLineWrapping ¶
func (s *State) EnableLineWrapping()
func (*State) EnableLogProcessBorder ¶
func (s *State) EnableLogProcessBorder()
func (*State) EnableOptionalLn ¶
func (s *State) EnableOptionalLn()
func (*State) EnablePrefixWithTime ¶
func (s *State) EnablePrefixWithTime()
func (*State) EnableProxyStreamDataFormatting ¶
func (s *State) EnableProxyStreamDataFormatting()
func (*State) EnableStyle ¶
func (s *State) EnableStyle()
func (*State) IncreaseIndent ¶
func (s *State) IncreaseIndent()
func (*State) IsGitlabCollapsibleSections ¶ added in v0.4.1
func (*State) IsLineWrappingEnabled ¶
func (*State) IsLogProcessBorderEnabled ¶ added in v0.4.3
func (*State) IsPrefixWithTimeEnabled ¶
func (*State) IsProxyStreamDataFormattingEnabled ¶
func (*State) IsStyleEnabled ¶
func (*State) LogProcessDownAndRightBorderSign ¶ added in v0.4.3
func (*State) LogProcessUpAndRightBorderSign ¶ added in v0.4.3
func (*State) LogProcessVerticalAndRightBorderSign ¶ added in v0.4.3
func (*State) LogProcessVerticalBorderSign ¶ added in v0.4.3
func (*State) ProcessesBorderBetweenIndentWidth ¶ added in v0.4.3
func (*State) ProcessesBorderIndentWidth ¶ added in v0.4.3
func (*State) ResetIndent ¶
func (s *State) ResetIndent()
func (*State) ResetPrefix ¶
func (s *State) ResetPrefix()
func (*State) ResetPrefixTime ¶
func (s *State) ResetPrefixTime()
func (*State) ServiceWidth ¶
func (*State) SetPrefixStyle ¶
func (*State) SetTagStyle ¶
func (*State) SetTagWithStyle ¶
func (*State) SharedState ¶ added in v0.4.3
type Stream ¶
func (*Stream) FormatAndLogF ¶
func (*Stream) NewLogBlock ¶
func (s *Stream) NewLogBlock(manager types.ManagerInterface, format string, a ...interface{}) *LogBlock
func (*Stream) NewLogProcess ¶
func (s *Stream) NewLogProcess(manager types.ManagerInterface, format string, a ...interface{}) *LogProcess
func (*Stream) NewLogProcessInline ¶
func (s *Stream) NewLogProcessInline(manager types.ManagerInterface, format string, a ...interface{}) *LogProcessInline
func (*Stream) ProxyStream ¶
Click to show internal directories.
Click to hide internal directories.