Documentation ¶
Index ¶
Constants ¶
View Source
const Error = "error"
Variables ¶
View Source
var InertDisplayer inertDisplayer //nolint
Functions ¶
func BuildDisplayFunc ¶
func LevelWarnOrDebug ¶
func LevelWarnOrDebug(debug bool) hclog.Level
func StdDisplay ¶
func StdDisplay(msg string)
Types ¶
type BasicDisplayer ¶
type BasicDisplayer struct {
// contains filtered or unexported fields
}
func MakeBasicDisplayer ¶
func MakeBasicDisplayer(logger hclog.Logger, display func(string)) BasicDisplayer
func (BasicDisplayer) Display ¶
func (bd BasicDisplayer) Display(msg string)
func (BasicDisplayer) Flush ¶
func (bd BasicDisplayer) Flush(bool)
func (BasicDisplayer) IsDebug ¶
func (bd BasicDisplayer) IsDebug() bool
func (BasicDisplayer) Log ¶
func (bd BasicDisplayer) Log(level hclog.Level, msg string, args ...any)
type StateWrapper ¶
type StateWrapper struct {
Displayer
}
func NewRecordingDisplayer ¶
func NewRecordingDisplayer(displayer Displayer) *StateWrapper
func (*StateWrapper) Flush ¶
func (sw *StateWrapper) Flush(logMode bool)
Click to show internal directories.
Click to hide internal directories.