Documentation ¶
Index ¶
- func BoldEndOptions(opts types.LogProcessOptionsInterface)
- func BoldFailOptions(opts types.LogProcessOptionsInterface)
- func BoldOptions(opts types.LogProcessOptionsInterface)
- func BoldStartOptions(opts types.LogProcessOptionsInterface)
- func BootstrapOptions(opts types.LogProcessOptionsInterface)
- func CommonOptions(opts types.LogProcessOptionsInterface)
- func ConvergeOptions(opts types.LogProcessOptionsInterface)
- func DebugF(format string, a ...interface{})
- func DebugLn(a ...interface{})
- func ErrorF(format string, a ...interface{})
- func ErrorLn(a ...interface{})
- func Fail(l string)
- func InfoF(format string, a ...interface{})
- func InfoLn(a ...interface{})
- func InitLoggerWithOptions(loggerType string, opts LoggerOptions)
- func JSON(content []byte)
- func MirrorOptions(opts types.LogProcessOptionsInterface)
- func Process(p, t string, run func() error) error
- func Success(l string)
- func TerraformOptions(opts types.LogProcessOptionsInterface)
- func WarnF(format string, a ...interface{})
- func WarnLn(a ...interface{})
- func Write(buf []byte) (int, error)
- type DummyLogger
- func (d *DummyLogger) DebugLogEnabled() bool
- func (d *DummyLogger) LogDebugF(format string, a ...interface{})
- func (d *DummyLogger) LogDebugLn(a ...interface{})
- func (d *DummyLogger) LogErrorF(format string, a ...interface{})
- func (d *DummyLogger) LogErrorLn(a ...interface{})
- func (d *DummyLogger) LogFail(l string)
- func (d *DummyLogger) LogInfoF(format string, a ...interface{})
- func (d *DummyLogger) LogInfoLn(a ...interface{})
- func (d *DummyLogger) LogJSON(content []byte)
- func (d *DummyLogger) LogProcess(_, t string, run func() error) error
- func (d *DummyLogger) LogSuccess(l string)
- func (d *DummyLogger) LogWarnF(format string, a ...interface{})
- func (d *DummyLogger) LogWarnLn(a ...interface{})
- func (d *DummyLogger) ProcessLogger() ProcessLogger
- func (d *DummyLogger) Write(content []byte) (int, error)
- type Logger
- type LoggerOptions
- type PrettyLogger
- func (d *PrettyLogger) DebugLogEnabled() bool
- func (d *PrettyLogger) LogDebugF(format string, a ...interface{})
- func (d *PrettyLogger) LogDebugLn(a ...interface{})
- func (d *PrettyLogger) LogErrorF(format string, a ...interface{})
- func (d *PrettyLogger) LogErrorLn(a ...interface{})
- func (d *PrettyLogger) LogFail(l string)
- func (d *PrettyLogger) LogInfoF(format string, a ...interface{})
- func (d *PrettyLogger) LogInfoLn(a ...interface{})
- func (d *PrettyLogger) LogJSON(content []byte)
- func (d *PrettyLogger) LogProcess(p, t string, run func() error) error
- func (d *PrettyLogger) LogSuccess(l string)
- func (d *PrettyLogger) LogWarnF(format string, a ...interface{})
- func (d *PrettyLogger) LogWarnLn(a ...interface{})
- func (d *PrettyLogger) ProcessLogger() ProcessLogger
- func (d *PrettyLogger) Write(content []byte) (int, error)
- type ProcessLogger
- type SilentLogger
- func (d *SilentLogger) DebugLogEnabled() bool
- func (d *SilentLogger) LogDebugF(format string, a ...interface{})
- func (d *SilentLogger) LogDebugLn(a ...interface{})
- func (d *SilentLogger) LogErrorF(format string, a ...interface{})
- func (d *SilentLogger) LogErrorLn(a ...interface{})
- func (d *SilentLogger) LogFail(l string)
- func (d *SilentLogger) LogInfoF(format string, a ...interface{})
- func (d *SilentLogger) LogInfoLn(a ...interface{})
- func (d *SilentLogger) LogJSON(content []byte)
- func (d *SilentLogger) LogProcess(_, t string, run func() error) error
- func (d *SilentLogger) LogSuccess(l string)
- func (d *SilentLogger) LogWarnF(format string, a ...interface{})
- func (d *SilentLogger) LogWarnLn(a ...interface{})
- func (d *SilentLogger) ProcessLogger() ProcessLogger
- func (d *SilentLogger) Write(content []byte) (int, error)
- type SimpleLogger
- func (d *SimpleLogger) DebugLogEnabled() bool
- func (d *SimpleLogger) LogDebugF(format string, a ...interface{})
- func (d *SimpleLogger) LogDebugLn(a ...interface{})
- func (d *SimpleLogger) LogErrorF(format string, a ...interface{})
- func (d *SimpleLogger) LogErrorLn(a ...interface{})
- func (d *SimpleLogger) LogFail(l string)
- func (d *SimpleLogger) LogInfoF(format string, a ...interface{})
- func (d *SimpleLogger) LogInfoLn(a ...interface{})
- func (d *SimpleLogger) LogJSON(content []byte)
- func (d *SimpleLogger) LogProcess(p, t string, run func() error) error
- func (d *SimpleLogger) LogSuccess(l string)
- func (d *SimpleLogger) LogWarnF(format string, a ...interface{})
- func (d *SimpleLogger) LogWarnLn(a ...interface{})
- func (d *SimpleLogger) ProcessLogger() ProcessLogger
- func (d *SimpleLogger) Write(content []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoldEndOptions ¶
func BoldEndOptions(opts types.LogProcessOptionsInterface)
func BoldFailOptions ¶
func BoldFailOptions(opts types.LogProcessOptionsInterface)
func BoldOptions ¶
func BoldOptions(opts types.LogProcessOptionsInterface)
func BoldStartOptions ¶
func BoldStartOptions(opts types.LogProcessOptionsInterface)
func BootstrapOptions ¶
func BootstrapOptions(opts types.LogProcessOptionsInterface)
func CommonOptions ¶
func CommonOptions(opts types.LogProcessOptionsInterface)
func ConvergeOptions ¶
func ConvergeOptions(opts types.LogProcessOptionsInterface)
func InitLoggerWithOptions ¶
func InitLoggerWithOptions(loggerType string, opts LoggerOptions)
func MirrorOptions ¶
func MirrorOptions(opts types.LogProcessOptionsInterface)
func TerraformOptions ¶
func TerraformOptions(opts types.LogProcessOptionsInterface)
Types ¶
type DummyLogger ¶
type DummyLogger struct {
// contains filtered or unexported fields
}
func (*DummyLogger) DebugLogEnabled ¶
func (d *DummyLogger) DebugLogEnabled() bool
func (*DummyLogger) LogDebugF ¶
func (d *DummyLogger) LogDebugF(format string, a ...interface{})
func (*DummyLogger) LogDebugLn ¶
func (d *DummyLogger) LogDebugLn(a ...interface{})
func (*DummyLogger) LogErrorF ¶
func (d *DummyLogger) LogErrorF(format string, a ...interface{})
func (*DummyLogger) LogErrorLn ¶
func (d *DummyLogger) LogErrorLn(a ...interface{})
func (*DummyLogger) LogFail ¶
func (d *DummyLogger) LogFail(l string)
func (*DummyLogger) LogInfoF ¶
func (d *DummyLogger) LogInfoF(format string, a ...interface{})
func (*DummyLogger) LogInfoLn ¶
func (d *DummyLogger) LogInfoLn(a ...interface{})
func (*DummyLogger) LogJSON ¶
func (d *DummyLogger) LogJSON(content []byte)
func (*DummyLogger) LogProcess ¶
func (d *DummyLogger) LogProcess(_, t string, run func() error) error
func (*DummyLogger) LogSuccess ¶
func (d *DummyLogger) LogSuccess(l string)
func (*DummyLogger) LogWarnF ¶
func (d *DummyLogger) LogWarnF(format string, a ...interface{})
func (*DummyLogger) LogWarnLn ¶
func (d *DummyLogger) LogWarnLn(a ...interface{})
func (*DummyLogger) ProcessLogger ¶
func (d *DummyLogger) ProcessLogger() ProcessLogger
type Logger ¶
type Logger interface { LogProcess(string, string, func() error) error LogInfoF(format string, a ...interface{}) LogInfoLn(a ...interface{}) LogErrorF(format string, a ...interface{}) LogErrorLn(a ...interface{}) LogDebugF(format string, a ...interface{}) LogDebugLn(a ...interface{}) LogWarnF(format string, a ...interface{}) LogWarnLn(a ...interface{}) LogSuccess(string) LogFail(string) LogJSON([]byte) ProcessLogger() ProcessLogger DebugLogEnabled() bool Write([]byte) (int, error) }
func GetDefaultLogger ¶
func GetDefaultLogger() Logger
func GetSilentLogger ¶
func GetSilentLogger() Logger
type PrettyLogger ¶
type PrettyLogger struct {
// contains filtered or unexported fields
}
func NewPrettyLogger ¶
func NewPrettyLogger(opts LoggerOptions) *PrettyLogger
func (*PrettyLogger) DebugLogEnabled ¶
func (d *PrettyLogger) DebugLogEnabled() bool
func (*PrettyLogger) LogDebugF ¶
func (d *PrettyLogger) LogDebugF(format string, a ...interface{})
func (*PrettyLogger) LogDebugLn ¶
func (d *PrettyLogger) LogDebugLn(a ...interface{})
func (*PrettyLogger) LogErrorF ¶
func (d *PrettyLogger) LogErrorF(format string, a ...interface{})
func (*PrettyLogger) LogErrorLn ¶
func (d *PrettyLogger) LogErrorLn(a ...interface{})
func (*PrettyLogger) LogFail ¶
func (d *PrettyLogger) LogFail(l string)
func (*PrettyLogger) LogInfoF ¶
func (d *PrettyLogger) LogInfoF(format string, a ...interface{})
func (*PrettyLogger) LogInfoLn ¶
func (d *PrettyLogger) LogInfoLn(a ...interface{})
func (*PrettyLogger) LogJSON ¶
func (d *PrettyLogger) LogJSON(content []byte)
func (*PrettyLogger) LogProcess ¶
func (d *PrettyLogger) LogProcess(p, t string, run func() error) error
func (*PrettyLogger) LogSuccess ¶
func (d *PrettyLogger) LogSuccess(l string)
func (*PrettyLogger) LogWarnF ¶
func (d *PrettyLogger) LogWarnF(format string, a ...interface{})
func (*PrettyLogger) LogWarnLn ¶
func (d *PrettyLogger) LogWarnLn(a ...interface{})
func (*PrettyLogger) ProcessLogger ¶
func (d *PrettyLogger) ProcessLogger() ProcessLogger
type ProcessLogger ¶
type ProcessLogger interface { LogProcessStart(name string) LogProcessFail() LogProcessEnd() }
func GetProcessLogger ¶
func GetProcessLogger() ProcessLogger
type SilentLogger ¶
type SilentLogger struct{}
func (*SilentLogger) DebugLogEnabled ¶
func (d *SilentLogger) DebugLogEnabled() bool
func (*SilentLogger) LogDebugF ¶
func (d *SilentLogger) LogDebugF(format string, a ...interface{})
func (*SilentLogger) LogDebugLn ¶
func (d *SilentLogger) LogDebugLn(a ...interface{})
func (*SilentLogger) LogErrorF ¶
func (d *SilentLogger) LogErrorF(format string, a ...interface{})
func (*SilentLogger) LogErrorLn ¶
func (d *SilentLogger) LogErrorLn(a ...interface{})
func (*SilentLogger) LogFail ¶
func (d *SilentLogger) LogFail(l string)
func (*SilentLogger) LogInfoF ¶
func (d *SilentLogger) LogInfoF(format string, a ...interface{})
func (*SilentLogger) LogInfoLn ¶
func (d *SilentLogger) LogInfoLn(a ...interface{})
func (*SilentLogger) LogJSON ¶
func (d *SilentLogger) LogJSON(content []byte)
func (*SilentLogger) LogProcess ¶
func (d *SilentLogger) LogProcess(_, t string, run func() error) error
func (*SilentLogger) LogSuccess ¶
func (d *SilentLogger) LogSuccess(l string)
func (*SilentLogger) LogWarnF ¶
func (d *SilentLogger) LogWarnF(format string, a ...interface{})
func (*SilentLogger) LogWarnLn ¶
func (d *SilentLogger) LogWarnLn(a ...interface{})
func (*SilentLogger) ProcessLogger ¶
func (d *SilentLogger) ProcessLogger() ProcessLogger
type SimpleLogger ¶
type SimpleLogger struct {
// contains filtered or unexported fields
}
func NewJSONLogger ¶
func NewJSONLogger(opts LoggerOptions) *SimpleLogger
func NewSimpleLogger ¶
func NewSimpleLogger(opts LoggerOptions) *SimpleLogger
func (*SimpleLogger) DebugLogEnabled ¶
func (d *SimpleLogger) DebugLogEnabled() bool
func (*SimpleLogger) LogDebugF ¶
func (d *SimpleLogger) LogDebugF(format string, a ...interface{})
func (*SimpleLogger) LogDebugLn ¶
func (d *SimpleLogger) LogDebugLn(a ...interface{})
func (*SimpleLogger) LogErrorF ¶
func (d *SimpleLogger) LogErrorF(format string, a ...interface{})
func (*SimpleLogger) LogErrorLn ¶
func (d *SimpleLogger) LogErrorLn(a ...interface{})
func (*SimpleLogger) LogFail ¶
func (d *SimpleLogger) LogFail(l string)
func (*SimpleLogger) LogInfoF ¶
func (d *SimpleLogger) LogInfoF(format string, a ...interface{})
func (*SimpleLogger) LogInfoLn ¶
func (d *SimpleLogger) LogInfoLn(a ...interface{})
func (*SimpleLogger) LogJSON ¶
func (d *SimpleLogger) LogJSON(content []byte)
func (*SimpleLogger) LogProcess ¶
func (d *SimpleLogger) LogProcess(p, t string, run func() error) error
func (*SimpleLogger) LogSuccess ¶
func (d *SimpleLogger) LogSuccess(l string)
func (*SimpleLogger) LogWarnF ¶
func (d *SimpleLogger) LogWarnF(format string, a ...interface{})
func (*SimpleLogger) LogWarnLn ¶
func (d *SimpleLogger) LogWarnLn(a ...interface{})
func (*SimpleLogger) ProcessLogger ¶
func (d *SimpleLogger) ProcessLogger() ProcessLogger
Click to show internal directories.
Click to hide internal directories.