Documentation
¶
Index ¶
- func BoldEndOptions(opts types.LogProcessOptionsInterface)
- func BoldFailOptions(opts types.LogProcessOptionsInterface)
- func BoldOptions(opts types.LogProcessOptionsInterface)
- func BoldStartOptions(opts types.LogProcessOptionsInterface)
- func InfrastructureOptions(opts types.LogProcessOptionsInterface)
- func InitKlog(logger Logger, opts ...KlogOpt) error
- type DummyLogger
- func (d *DummyLogger) BufferLogger(buffer *bytes.Buffer) Logger
- func (d *DummyLogger) DebugF(format string, a ...interface{})
- func (w DummyLogger) DebugFLn(format string, a ...any)
- func (d *DummyLogger) DebugLn(a ...interface{})
- func (d *DummyLogger) ErrorF(format string, a ...interface{})
- func (w DummyLogger) ErrorFLn(format string, a ...any)
- func (d *DummyLogger) ErrorLn(a ...interface{})
- func (d *DummyLogger) Fail(l string)
- func (d *DummyLogger) FailRetry(l string)
- func (d *DummyLogger) FlushAndClose() error
- func (d *DummyLogger) InfoF(format string, a ...interface{})
- func (w DummyLogger) InfoFLn(format string, a ...any)
- func (d *DummyLogger) InfoLn(a ...interface{})
- func (d *DummyLogger) JSON(content []byte)
- func (d *DummyLogger) Process(_ Process, t string, run func() error) error
- func (d *DummyLogger) ProcessLogger() ProcessLogger
- func (d *DummyLogger) SilentLogger() *SilentLogger
- func (d *DummyLogger) Success(l string)
- func (d *DummyLogger) WarnF(format string, a ...interface{})
- func (w DummyLogger) WarnFLn(format string, a ...any)
- func (d *DummyLogger) WarnLn(a ...interface{})
- func (d *DummyLogger) Write(content []byte) (int, error)
- type InMemoryLogger
- func (l *InMemoryLogger) AllMatches(m *Match) ([]string, error)
- func (l *InMemoryLogger) BufferLogger(buffer *bytes.Buffer) Logger
- func (l *InMemoryLogger) DebugF(format string, a ...interface{})
- func (w InMemoryLogger) DebugFLn(format string, a ...any)
- func (l *InMemoryLogger) DebugLn(a ...interface{})
- func (l *InMemoryLogger) ErrorF(format string, a ...interface{})
- func (w InMemoryLogger) ErrorFLn(format string, a ...any)
- func (l *InMemoryLogger) ErrorLn(a ...interface{})
- func (l *InMemoryLogger) Fail(s string)
- func (l *InMemoryLogger) FailRetry(s string)
- func (l *InMemoryLogger) FirstMatch(m *Match) (string, error)
- func (l *InMemoryLogger) FlushAndClose() error
- func (l *InMemoryLogger) InfoF(format string, a ...interface{})
- func (w InMemoryLogger) InfoFLn(format string, a ...any)
- func (l *InMemoryLogger) InfoLn(a ...interface{})
- func (l *InMemoryLogger) JSON(s []byte)
- func (l *InMemoryLogger) Parent() Logger
- func (l *InMemoryLogger) Process(p Process, t string, action func() error) error
- func (l *InMemoryLogger) ProcessEnd()
- func (l *InMemoryLogger) ProcessFail()
- func (l *InMemoryLogger) ProcessLogger() ProcessLogger
- func (l *InMemoryLogger) ProcessStart(name string)
- func (l *InMemoryLogger) SilentLogger() *SilentLogger
- func (l *InMemoryLogger) Success(s string)
- func (l *InMemoryLogger) WarnF(format string, a ...interface{})
- func (w InMemoryLogger) WarnFLn(format string, a ...any)
- func (l *InMemoryLogger) WarnLn(a ...interface{})
- func (l *InMemoryLogger) WithBuffer(buffer *bytes.Buffer) *InMemoryLogger
- func (l *InMemoryLogger) WithDebugPrefix(prefix string) *InMemoryLogger
- func (l *InMemoryLogger) WithErrorPrefix(prefix string) *InMemoryLogger
- func (l *InMemoryLogger) WithNoDebug(f bool) *InMemoryLogger
- func (l *InMemoryLogger) Write(s []byte) (int, error)
- type KeywordSanitizer
- func (l *KeywordSanitizer) Filter(args []any) []any
- func (l *KeywordSanitizer) FilterF(format string, args []any) (string, []any)
- func (l *KeywordSanitizer) FilterS(msg string, keysAndValues []any) (string, []any)
- func (l *KeywordSanitizer) WithAdditionalKeywords(keywords []string) *KeywordSanitizer
- type KlogOpt
- type KlogOptions
- type Logger
- func NewLogger(loggerType Type, isDebug bool) (Logger, error)
- func NewLoggerWithOptions(loggerType Type, opts LoggerOptions) (Logger, error)
- func ProvideSafe(provider LoggerProvider, defaultLogger Logger) Logger
- func SafeProvideLogger(provider LoggerProvider) Logger
- func WrapWithTeeLogger(logger Logger, writer io.WriteCloser, bufSize int) (Logger, error)
- type LoggerOptions
- type LoggerProvider
- type Match
- type PrettyLogger
- func (d *PrettyLogger) BufferLogger(buffer *bytes.Buffer) Logger
- func (d *PrettyLogger) DebugF(format string, a ...interface{})
- func (w PrettyLogger) DebugFLn(format string, a ...any)
- func (d *PrettyLogger) DebugLn(a ...interface{})
- func (d *PrettyLogger) ErrorF(format string, a ...interface{})
- func (w PrettyLogger) ErrorFLn(format string, a ...any)
- func (d *PrettyLogger) ErrorLn(a ...interface{})
- func (d *PrettyLogger) Fail(l string)
- func (d *PrettyLogger) FailRetry(l string)
- func (d *PrettyLogger) FlushAndClose() error
- func (d *PrettyLogger) InfoF(format string, a ...interface{})
- func (w PrettyLogger) InfoFLn(format string, a ...any)
- func (d *PrettyLogger) InfoLn(a ...interface{})
- func (d *PrettyLogger) JSON(content []byte)
- func (d *PrettyLogger) Process(p Process, t string, run func() error) error
- func (d *PrettyLogger) ProcessLogger() ProcessLogger
- func (d *PrettyLogger) SilentLogger() *SilentLogger
- func (d *PrettyLogger) Success(l string)
- func (d *PrettyLogger) WarnF(format string, a ...interface{})
- func (w PrettyLogger) WarnFLn(format string, a ...any)
- func (d *PrettyLogger) WarnLn(a ...interface{})
- func (d *PrettyLogger) Write(content []byte) (int, error)
- type Process
- type ProcessLogger
- type Processes
- type Sanitizer
- type SilentLogger
- func (d *SilentLogger) BufferLogger(buffer *bytes.Buffer) Logger
- func (d *SilentLogger) DebugF(format string, a ...interface{})
- func (w SilentLogger) DebugFLn(format string, a ...any)
- func (d *SilentLogger) DebugLn(a ...interface{})
- func (d *SilentLogger) ErrorF(format string, a ...interface{})
- func (w SilentLogger) ErrorFLn(format string, a ...any)
- func (d *SilentLogger) ErrorLn(a ...interface{})
- func (d *SilentLogger) Fail(l string)
- func (d *SilentLogger) FailRetry(l string)
- func (d *SilentLogger) FlushAndClose() error
- func (d *SilentLogger) InfoF(format string, a ...interface{})
- func (w SilentLogger) InfoFLn(format string, a ...any)
- func (d *SilentLogger) InfoLn(a ...interface{})
- func (d *SilentLogger) JSON(content []byte)
- func (d *SilentLogger) Process(_ Process, t string, run func() error) error
- func (d *SilentLogger) ProcessLogger() ProcessLogger
- func (d *SilentLogger) SilentLogger() *SilentLogger
- func (d *SilentLogger) Success(l string)
- func (d *SilentLogger) WarnF(format string, a ...interface{})
- func (w SilentLogger) WarnFLn(format string, a ...any)
- func (d *SilentLogger) WarnLn(a ...interface{})
- func (d *SilentLogger) Write(content []byte) (int, error)
- type SimpleLogger
- func (d *SimpleLogger) BufferLogger(buffer *bytes.Buffer) Logger
- func (d *SimpleLogger) DebugF(format string, a ...interface{})
- func (w SimpleLogger) DebugFLn(format string, a ...any)
- func (d *SimpleLogger) DebugLn(a ...interface{})
- func (d *SimpleLogger) ErrorF(format string, a ...interface{})
- func (w SimpleLogger) ErrorFLn(format string, a ...any)
- func (d *SimpleLogger) ErrorLn(a ...interface{})
- func (d *SimpleLogger) Fail(l string)
- func (d *SimpleLogger) FailRetry(l string)
- func (d *SimpleLogger) FlushAndClose() error
- func (d *SimpleLogger) InfoF(format string, a ...interface{})
- func (w SimpleLogger) InfoFLn(format string, a ...any)
- func (d *SimpleLogger) InfoLn(a ...interface{})
- func (d *SimpleLogger) JSON(content []byte)
- func (d *SimpleLogger) Process(p Process, t string, run func() error) error
- func (d *SimpleLogger) ProcessLogger() ProcessLogger
- func (d *SimpleLogger) SilentLogger() *SilentLogger
- func (d *SimpleLogger) Success(l string)
- func (d *SimpleLogger) WarnF(format string, a ...interface{})
- func (w SimpleLogger) WarnFLn(format string, a ...any)
- func (d *SimpleLogger) WarnLn(a ...interface{})
- func (d *SimpleLogger) Write(content []byte) (int, error)
- type StyleEntry
- type StyleEntryOptionsSetter
- type TeeLogger
- func (d *TeeLogger) BufferLogger(buffer *bytes.Buffer) Logger
- func (d *TeeLogger) DebugF(format string, a ...interface{})
- func (w TeeLogger) DebugFLn(format string, a ...any)
- func (d *TeeLogger) DebugLn(a ...interface{})
- func (d *TeeLogger) ErrorF(format string, a ...interface{})
- func (w TeeLogger) ErrorFLn(format string, a ...any)
- func (d *TeeLogger) ErrorLn(a ...interface{})
- func (d *TeeLogger) Fail(l string)
- func (d *TeeLogger) FailRetry(l string)
- func (d *TeeLogger) FlushAndClose() error
- func (d *TeeLogger) InfoF(format string, a ...interface{})
- func (w TeeLogger) InfoFLn(format string, a ...any)
- func (d *TeeLogger) InfoLn(a ...interface{})
- func (d *TeeLogger) JSON(content []byte)
- func (d *TeeLogger) Process(p Process, t string, run func() error) error
- func (d *TeeLogger) ProcessLogger() ProcessLogger
- func (d *TeeLogger) SilentLogger() *SilentLogger
- func (d *TeeLogger) Success(l string)
- func (d *TeeLogger) WarnF(format string, a ...interface{})
- func (w TeeLogger) WarnFLn(format string, a ...any)
- func (d *TeeLogger) WarnLn(a ...interface{})
- func (d *TeeLogger) Write(content []byte) (int, error)
- type Type
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 InfrastructureOptions ¶
func InfrastructureOptions(opts types.LogProcessOptionsInterface)
Types ¶
type DummyLogger ¶
type DummyLogger struct {
// contains filtered or unexported fields
}
func NewDummyLogger ¶
func NewDummyLogger(isDebug bool) *DummyLogger
func (*DummyLogger) BufferLogger ¶
func (d *DummyLogger) BufferLogger(buffer *bytes.Buffer) Logger
func (*DummyLogger) DebugF ¶
func (d *DummyLogger) DebugF(format string, a ...interface{})
func (*DummyLogger) DebugLn ¶
func (d *DummyLogger) DebugLn(a ...interface{})
func (*DummyLogger) ErrorF ¶
func (d *DummyLogger) ErrorF(format string, a ...interface{})
func (*DummyLogger) ErrorLn ¶
func (d *DummyLogger) ErrorLn(a ...interface{})
func (*DummyLogger) Fail ¶
func (d *DummyLogger) Fail(l string)
func (*DummyLogger) FailRetry ¶
func (d *DummyLogger) FailRetry(l string)
func (*DummyLogger) FlushAndClose ¶
func (d *DummyLogger) FlushAndClose() error
func (*DummyLogger) InfoF ¶
func (d *DummyLogger) InfoF(format string, a ...interface{})
func (*DummyLogger) InfoLn ¶
func (d *DummyLogger) InfoLn(a ...interface{})
func (*DummyLogger) JSON ¶
func (d *DummyLogger) JSON(content []byte)
func (*DummyLogger) Process ¶
func (d *DummyLogger) Process(_ Process, t string, run func() error) error
func (*DummyLogger) ProcessLogger ¶
func (d *DummyLogger) ProcessLogger() ProcessLogger
func (*DummyLogger) SilentLogger ¶
func (d *DummyLogger) SilentLogger() *SilentLogger
func (*DummyLogger) Success ¶
func (d *DummyLogger) Success(l string)
func (*DummyLogger) WarnF ¶
func (d *DummyLogger) WarnF(format string, a ...interface{})
func (*DummyLogger) WarnLn ¶
func (d *DummyLogger) WarnLn(a ...interface{})
type InMemoryLogger ¶
type InMemoryLogger struct {
// contains filtered or unexported fields
}
func NewInMemoryLogger ¶
func NewInMemoryLogger() *InMemoryLogger
func NewInMemoryLoggerWithParent ¶
func NewInMemoryLoggerWithParent(parent Logger) *InMemoryLogger
func (*InMemoryLogger) AllMatches ¶
func (l *InMemoryLogger) AllMatches(m *Match) ([]string, error)
func (*InMemoryLogger) BufferLogger ¶
func (l *InMemoryLogger) BufferLogger(buffer *bytes.Buffer) Logger
func (*InMemoryLogger) DebugF ¶
func (l *InMemoryLogger) DebugF(format string, a ...interface{})
func (*InMemoryLogger) DebugLn ¶
func (l *InMemoryLogger) DebugLn(a ...interface{})
func (*InMemoryLogger) ErrorF ¶
func (l *InMemoryLogger) ErrorF(format string, a ...interface{})
func (*InMemoryLogger) ErrorLn ¶
func (l *InMemoryLogger) ErrorLn(a ...interface{})
func (*InMemoryLogger) Fail ¶
func (l *InMemoryLogger) Fail(s string)
func (*InMemoryLogger) FailRetry ¶
func (l *InMemoryLogger) FailRetry(s string)
func (*InMemoryLogger) FirstMatch ¶
func (l *InMemoryLogger) FirstMatch(m *Match) (string, error)
func (*InMemoryLogger) FlushAndClose ¶
func (l *InMemoryLogger) FlushAndClose() error
func (*InMemoryLogger) InfoF ¶
func (l *InMemoryLogger) InfoF(format string, a ...interface{})
func (*InMemoryLogger) InfoLn ¶
func (l *InMemoryLogger) InfoLn(a ...interface{})
func (*InMemoryLogger) JSON ¶
func (l *InMemoryLogger) JSON(s []byte)
func (*InMemoryLogger) Parent ¶
func (l *InMemoryLogger) Parent() Logger
func (*InMemoryLogger) Process ¶
func (l *InMemoryLogger) Process(p Process, t string, action func() error) error
func (*InMemoryLogger) ProcessEnd ¶
func (l *InMemoryLogger) ProcessEnd()
func (*InMemoryLogger) ProcessFail ¶
func (l *InMemoryLogger) ProcessFail()
func (*InMemoryLogger) ProcessLogger ¶
func (l *InMemoryLogger) ProcessLogger() ProcessLogger
func (*InMemoryLogger) ProcessStart ¶
func (l *InMemoryLogger) ProcessStart(name string)
func (*InMemoryLogger) SilentLogger ¶
func (l *InMemoryLogger) SilentLogger() *SilentLogger
func (*InMemoryLogger) Success ¶
func (l *InMemoryLogger) Success(s string)
func (*InMemoryLogger) WarnF ¶
func (l *InMemoryLogger) WarnF(format string, a ...interface{})
func (*InMemoryLogger) WarnLn ¶
func (l *InMemoryLogger) WarnLn(a ...interface{})
func (*InMemoryLogger) WithBuffer ¶
func (l *InMemoryLogger) WithBuffer(buffer *bytes.Buffer) *InMemoryLogger
func (*InMemoryLogger) WithDebugPrefix ¶
func (l *InMemoryLogger) WithDebugPrefix(prefix string) *InMemoryLogger
func (*InMemoryLogger) WithErrorPrefix ¶
func (l *InMemoryLogger) WithErrorPrefix(prefix string) *InMemoryLogger
func (*InMemoryLogger) WithNoDebug ¶
func (l *InMemoryLogger) WithNoDebug(f bool) *InMemoryLogger
type KeywordSanitizer ¶
type KeywordSanitizer struct {
// contains filtered or unexported fields
}
func NewKeywordSanitizer ¶
func NewKeywordSanitizer() *KeywordSanitizer
func (*KeywordSanitizer) Filter ¶
func (l *KeywordSanitizer) Filter(args []any) []any
func (*KeywordSanitizer) FilterF ¶
func (l *KeywordSanitizer) FilterF(format string, args []any) (string, []any)
func (*KeywordSanitizer) FilterS ¶
func (l *KeywordSanitizer) FilterS(msg string, keysAndValues []any) (string, []any)
func (*KeywordSanitizer) WithAdditionalKeywords ¶
func (l *KeywordSanitizer) WithAdditionalKeywords(keywords []string) *KeywordSanitizer
type KlogOptions ¶
type KlogOptions struct {
// contains filtered or unexported fields
}
type Logger ¶
type Logger interface {
// contains filtered or unexported methods
}
func NewLoggerWithOptions ¶
func NewLoggerWithOptions(loggerType Type, opts LoggerOptions) (Logger, error)
NewLoggerWithOptions do not init Klog use InitKlog for initialize Klog wrapper
func ProvideSafe ¶ added in v0.3.0
func ProvideSafe(provider LoggerProvider, defaultLogger Logger) Logger
func SafeProvideLogger ¶
func SafeProvideLogger(provider LoggerProvider) Logger
func WrapWithTeeLogger ¶
type LoggerOptions ¶
type LoggerProvider ¶
type LoggerProvider func() Logger
func SilentLoggerProvider ¶
func SilentLoggerProvider() LoggerProvider
func SimpleLoggerProvider ¶
func SimpleLoggerProvider(logger Logger) LoggerProvider
type PrettyLogger ¶
type PrettyLogger struct {
// contains filtered or unexported fields
}
func NewPrettyLogger ¶
func NewPrettyLogger(opts LoggerOptions) *PrettyLogger
func (*PrettyLogger) BufferLogger ¶
func (d *PrettyLogger) BufferLogger(buffer *bytes.Buffer) Logger
func (*PrettyLogger) DebugF ¶
func (d *PrettyLogger) DebugF(format string, a ...interface{})
func (*PrettyLogger) DebugLn ¶
func (d *PrettyLogger) DebugLn(a ...interface{})
func (*PrettyLogger) ErrorF ¶
func (d *PrettyLogger) ErrorF(format string, a ...interface{})
func (*PrettyLogger) ErrorLn ¶
func (d *PrettyLogger) ErrorLn(a ...interface{})
func (*PrettyLogger) Fail ¶
func (d *PrettyLogger) Fail(l string)
func (*PrettyLogger) FailRetry ¶
func (d *PrettyLogger) FailRetry(l string)
func (*PrettyLogger) FlushAndClose ¶
func (d *PrettyLogger) FlushAndClose() error
func (*PrettyLogger) InfoF ¶
func (d *PrettyLogger) InfoF(format string, a ...interface{})
func (*PrettyLogger) InfoLn ¶
func (d *PrettyLogger) InfoLn(a ...interface{})
func (*PrettyLogger) JSON ¶
func (d *PrettyLogger) JSON(content []byte)
func (*PrettyLogger) Process ¶
func (d *PrettyLogger) Process(p Process, t string, run func() error) error
func (*PrettyLogger) ProcessLogger ¶
func (d *PrettyLogger) ProcessLogger() ProcessLogger
func (*PrettyLogger) SilentLogger ¶
func (d *PrettyLogger) SilentLogger() *SilentLogger
func (*PrettyLogger) Success ¶
func (d *PrettyLogger) Success(l string)
func (*PrettyLogger) WarnF ¶
func (d *PrettyLogger) WarnF(format string, a ...interface{})
func (*PrettyLogger) WarnLn ¶
func (d *PrettyLogger) WarnLn(a ...interface{})
type ProcessLogger ¶
type ProcessLogger interface {
ProcessStart(name string)
ProcessFail()
ProcessEnd()
}
type Processes ¶
type Processes map[Process]StyleEntry
func AdditionalProcesses ¶
func AdditionalProcesses(processes map[string]StyleEntry) Processes
type Sanitizer ¶
func NewDummySanitizer ¶
func NewDummySanitizer() Sanitizer
type SilentLogger ¶
type SilentLogger struct {
// contains filtered or unexported fields
}
func NewSilentLogger ¶
func NewSilentLogger() *SilentLogger
func (*SilentLogger) BufferLogger ¶
func (d *SilentLogger) BufferLogger(buffer *bytes.Buffer) Logger
func (*SilentLogger) DebugF ¶
func (d *SilentLogger) DebugF(format string, a ...interface{})
func (*SilentLogger) DebugLn ¶
func (d *SilentLogger) DebugLn(a ...interface{})
func (*SilentLogger) ErrorF ¶
func (d *SilentLogger) ErrorF(format string, a ...interface{})
func (*SilentLogger) ErrorLn ¶
func (d *SilentLogger) ErrorLn(a ...interface{})
func (*SilentLogger) Fail ¶
func (d *SilentLogger) Fail(l string)
func (*SilentLogger) FailRetry ¶
func (d *SilentLogger) FailRetry(l string)
func (*SilentLogger) FlushAndClose ¶
func (d *SilentLogger) FlushAndClose() error
func (*SilentLogger) InfoF ¶
func (d *SilentLogger) InfoF(format string, a ...interface{})
func (*SilentLogger) InfoLn ¶
func (d *SilentLogger) InfoLn(a ...interface{})
func (*SilentLogger) JSON ¶
func (d *SilentLogger) JSON(content []byte)
func (*SilentLogger) Process ¶
func (d *SilentLogger) Process(_ Process, t string, run func() error) error
func (*SilentLogger) ProcessLogger ¶
func (d *SilentLogger) ProcessLogger() ProcessLogger
func (*SilentLogger) SilentLogger ¶
func (d *SilentLogger) SilentLogger() *SilentLogger
func (*SilentLogger) Success ¶
func (d *SilentLogger) Success(l string)
func (*SilentLogger) WarnF ¶
func (d *SilentLogger) WarnF(format string, a ...interface{})
func (*SilentLogger) WarnLn ¶
func (d *SilentLogger) WarnLn(a ...interface{})
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) BufferLogger ¶
func (d *SimpleLogger) BufferLogger(buffer *bytes.Buffer) Logger
func (*SimpleLogger) DebugF ¶
func (d *SimpleLogger) DebugF(format string, a ...interface{})
func (*SimpleLogger) DebugLn ¶
func (d *SimpleLogger) DebugLn(a ...interface{})
func (*SimpleLogger) ErrorF ¶
func (d *SimpleLogger) ErrorF(format string, a ...interface{})
func (*SimpleLogger) ErrorLn ¶
func (d *SimpleLogger) ErrorLn(a ...interface{})
func (*SimpleLogger) Fail ¶
func (d *SimpleLogger) Fail(l string)
func (*SimpleLogger) FailRetry ¶
func (d *SimpleLogger) FailRetry(l string)
func (*SimpleLogger) FlushAndClose ¶
func (d *SimpleLogger) FlushAndClose() error
func (*SimpleLogger) InfoF ¶
func (d *SimpleLogger) InfoF(format string, a ...interface{})
func (*SimpleLogger) InfoLn ¶
func (d *SimpleLogger) InfoLn(a ...interface{})
func (*SimpleLogger) JSON ¶
func (d *SimpleLogger) JSON(content []byte)
func (*SimpleLogger) Process ¶
func (d *SimpleLogger) Process(p Process, t string, run func() error) error
func (*SimpleLogger) ProcessLogger ¶
func (d *SimpleLogger) ProcessLogger() ProcessLogger
func (*SimpleLogger) SilentLogger ¶
func (d *SimpleLogger) SilentLogger() *SilentLogger
func (*SimpleLogger) Success ¶
func (d *SimpleLogger) Success(l string)
func (*SimpleLogger) WarnF ¶
func (d *SimpleLogger) WarnF(format string, a ...interface{})
func (*SimpleLogger) WarnLn ¶
func (d *SimpleLogger) WarnLn(a ...interface{})
type StyleEntry ¶
type StyleEntry struct {
Title string
OptionsSetter StyleEntryOptionsSetter
}
type StyleEntryOptionsSetter ¶
type StyleEntryOptionsSetter func(opts types.LogProcessOptionsInterface)
type TeeLogger ¶
type TeeLogger struct {
// contains filtered or unexported fields
}
func NewTeeLogger ¶
func (*TeeLogger) FlushAndClose ¶
func (*TeeLogger) ProcessLogger ¶
func (d *TeeLogger) ProcessLogger() ProcessLogger
func (*TeeLogger) SilentLogger ¶
func (d *TeeLogger) SilentLogger() *SilentLogger
Click to show internal directories.
Click to hide internal directories.