Documentation
¶
Index ¶
- type LogEntry
- type Logger
- func (l *Logger) Clear()
- func (l *Logger) Criticalf(s string, v ...interface{})
- func (l *Logger) Debug(s string)
- func (l *Logger) Debugf(s string, v ...interface{})
- func (l *Logger) Err(s string)
- func (l *Logger) Error(s string)
- func (l *Logger) ErrorCount() int
- func (l *Logger) Errorf(s string, v ...interface{})
- func (l *Logger) GetMessages() []LogEntry
- func (l *Logger) HasError(substr string) bool
- func (l *Logger) HasMessage(substr string) bool
- func (l *Logger) HasWarning(substr string) bool
- func (l *Logger) Info(s string)
- func (l *Logger) Infof(s string, v ...interface{})
- func (l *Logger) Log(s string)
- func (l *Logger) MessageCount() int
- func (l *Logger) Notice(s string)
- func (l *Logger) Noticef(s string, v ...interface{})
- func (l *Logger) Warn(s string)
- func (l *Logger) Warning(s string)
- func (l *Logger) WarningCount() int
- func (l *Logger) Warningf(s string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
TestLogger is a shared test logger implementation for use across test suites. It implements the core.Logger interface and provides methods to capture and verify log output.
func NewTestLogger ¶
NewTestLogger creates a new test logger
func (*Logger) ErrorCount ¶
ErrorCount returns the number of error messages
func (*Logger) GetMessages ¶
GetMessages returns all logged messages
func (*Logger) HasMessage ¶
HasMessage checks if a message containing the substring was logged
func (*Logger) HasWarning ¶
HasWarning checks if a warning containing the substring was logged
func (*Logger) MessageCount ¶
MessageCount returns the number of logged messages
func (*Logger) WarningCount ¶ added in v0.18.0
WarningCount returns the number of warning messages
Click to show internal directories.
Click to hide internal directories.