Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FitTextOptions ¶
type LogBlockInterface ¶
type LogBlockInterface interface {
Options(func(options LogBlockOptionsInterface)) LogBlockInterface
Disable() LogBlockInterface
Enable() LogBlockInterface
Do(func())
DoError(func() error) error
}
type LogProcessInlineInterface ¶
type LogProcessInlineInterface interface {
Options(func(options LogProcessInlineOptionsInterface)) LogProcessInlineInterface
Disable() LogProcessInlineInterface
Enable() LogProcessInlineInterface
Do(func())
DoError(func() error) error
}
type LogProcessInterface ¶
type LogProcessInterface interface {
Options(func(options LogProcessOptionsInterface)) LogProcessInterface
Disable() LogProcessInterface
Enable() LogProcessInterface
Do(func())
DoError(func() error) error
Start()
StepEnd(format string, a ...interface{})
End()
Fail()
}
type LoggerInterface ¶
type LoggerInterface interface {
ManagerLogInterface
Error() ManagerInterface
Warn() ManagerInterface
Default() ManagerInterface
Info() ManagerInterface
Debug() ManagerInterface
FitText(text string, options FitTextOptions) string
Colorize(style *style.Style, format string, a ...interface{}) string
AcceptedLevel() level.Level
SetAcceptedLevel(lvl level.Level)
IsAcceptedLevel(lvl level.Level) bool
Streams() StreamsInterface
ProxyOutStream() io.Writer
ProxyErrStream() io.Writer
NewSubLogger(outStream, errStream io.Writer) LoggerInterface
GetStreamsSettingsFrom(l LoggerInterface)
Reset()
}
type ManagerInterface ¶
type ManagerLogInterface ¶
type ManagerLogInterface interface {
LogLn(a ...interface{})
LogF(format string, a ...interface{})
LogLnDetails(a ...interface{})
LogFDetails(format string, a ...interface{})
LogLnHighlight(a ...interface{})
LogFHighlight(format string, a ...interface{})
LogLnWithCustomStyle(style *stylePkg.Style, a ...interface{})
LogFWithCustomStyle(style *stylePkg.Style, format string, a ...interface{})
LogOptionalLn()
LogBlock(format string, a ...interface{}) LogBlockInterface
LogProcessInline(format string, a ...interface{}) LogProcessInlineInterface
LogProcess(format string, a ...interface{}) LogProcessInterface
}
type StreamsInterface ¶
type StreamsInterface interface {
Mute()
Unmute()
IsMuted() bool
EnableGitlabCollapsibleSections()
DisableGitlabCollapsibleSections()
IsGitlabCollapsibleSections() bool
DisablePrettyLog()
DoWithProxyStreamDataFormatting(func())
DoWithoutProxyStreamDataFormatting(func())
DoErrorWithProxyStreamDataFormatting(func() error) error
DoErrorWithoutProxyStreamDataFormatting(func() error) error
EnableProxyStreamDataFormatting()
DisableProxyStreamDataFormatting()
IsProxyStreamDataFormattingEnabled() bool
EnableLineWrapping()
DisableLineWrapping()
IsLineWrappingEnabled() bool
EnableStyle()
DisableStyle()
IsStyleEnabled() bool
Width() int
SetWidth(value int)
ContentWidth() int
ServiceWidth() int
DoWithIndent(func())
DoErrorWithIndent(func() error) error
DoWithoutIndent(func())
DoErrorWithoutIndent(func() error) error
IncreaseIndent()
DecreaseIndent()
ResetIndent()
DoWithTag(value string, style *style.Style, f func())
DoErrorWithTag(value string, style *style.Style, f func() error) error
SetTag(value string)
SetTagStyle(style *style.Style)
SetTagWithStyle(value string, style *style.Style)
ResetTag()
EnablePrefixWithTime()
DisablePrefixWithTime()
IsPrefixWithTimeEnabled() bool
ResetPrefixTime()
SetPrefix(value string)
SetPrefixStyle(style *style.Style)
ResetPrefix()
EnableLogProcessBorder()
DisableLogProcessBorder()
IsLogProcessBorderEnabled() bool
}
Click to show internal directories.
Click to hide internal directories.